学习记录--一列数据转为一个字段

 SELECT STUFF((SELECT ','+字段 FROM 表名 for xml path('')),1,1,'')

猜你喜欢

转载自www.cnblogs.com/Metor9527/p/10978195.html