SQLserver将查询的字段中的数据 拼接成字符串用逗号隔开 select stuff((select ','+字段名称 from 表 for xml path('')),1,1,'') 将查询的字段中的数据 拼接成字符串用逗号隔开