SQL 一列数据整合为一条数据:
SELECT STUFF(( SELECT distinct ',' + 列名 FROM 表名 where [条件] FOR XML PATH('') ), 1, 1, '')