返回列转行拼接 记录

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

  

原文地址:https://www.cnblogs.com/yzenet/p/6950469.html