在xml中,动态传参去数据库查询,下面是in的示例. 比如有条sql SELECT * FROM corp_tax c WHERE c.id in (387419,387423) AND c.corp_year=2018 AND c.corp_month =6 and c.park_id =1 LIMIT 5 这条sql,如果要动态传参,xml的代码如下 <select id="tableFive" resultMap="twoToNine"> SELE
[cms:sql query="SELECT ContentXML.value('/fields[1]/Address[1]','varchar(max)')AS valueForm FROM dbo.CMSArticleContent where ArticleID=100 and pageindex=1 and pagesize=10"]{#valueForm}[/cms:sql]
SELECT top 10 [HFMBDATA].query('(/Items/Item[@ID=''tbBryj''])').value('(//TextValue)[1]','nvarchar(max)') as mz, [HFMBDATA].value('(Items/Item[@ID="rb_fzhd_y"]/@ControlType)[1]','varchar(50)') FROM [EMRCP].[dbo].[T_ZYBR_HF] as at 获取结果: mz