标签:bsp tle 多行 select 合并 where from XML rom
select ‘[‘+title_a+‘,‘+title_b +‘]‘ from A for xml path(‘‘)
SELECT *, (select ‘[‘+title_a+‘,‘+title_b +‘]‘ from A where A.t_id=B.t_id for xml path(‘‘)) FROM B
关于SQL Server将一列的多行内容拼接成一行,合并显示在另外表中
标签:bsp tle 多行 select 合并 where from XML rom
原文地址:http://www.cnblogs.com/cuozhixu/p/7807946.html