SQL-xml(查询结果,多行合并成一行)
时间:2015-01-06 17:32:11
收藏:0
阅读:195
原始数据:
select UserName from com_t_userinfo where username like ‘测试%‘
查询结果:

需求所要结果:
select UserName+‘,‘ from com_t_userinfo where username like ‘测试%‘ for xml path (‘‘)
查询结果:

评论(0)