返回列转行拼接 记录

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

  

posted @ 2017-06-06 11:08  KyrieYang  阅读(304)  评论(0)    收藏  举报