SQL 多行合并一行时间:2021-06-01 00:07:09select stuff((select ',' + CONVERT(VARCHAR(50),id)+'' from tab_menu group by id for xml path('')),1,1,'')