select stuff((select ',' + CONVERT(VARCHAR(50),id)+'' from tab_menu group by id for xml path('')),1,1,'')
SQL 多行合并一行
2024-03-07 22:01:15
2024-03-07 22:01:15
select stuff((select ',' + CONVERT(VARCHAR(50),id)+'' from tab_menu group by id for xml path('')),1,1,'')