select stuff((select ','+字段名称 from 表 for xml path('')),1,1,'') 将查询的字段中的数据 拼接成字符串用逗号隔开 相关文章: 2021-11-27 2022-12-23 2021-06-20 2022-12-23 2021-12-23