阅读背景:

SQL实用技巧:如何将表中某一列的部分数据合并到一行中

来源:互联网 

select *,stuff(select ‘,’ + fieldname from table1 for xml path(”)),1,1,”)  as  field from table2select *,stuff(select ‘,’ + fieldname from table




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: