SQL 行转列 列转行 预立科技 2021-08-02 341 阅读1分钟 一,一列多行转一行,逗号分隔 SQL : select stuff((select ','+id from Table_1 for xml path('')),1,1,'') 结果如下