SQL逗号合并一列多行的值

 select stuff((select ','+行名 from 表名 for xml path('')),1,1,'')

原文地址:https://www.cnblogs.com/ljs7490/p/11281294.html