📜  tsql 在一个字符串中加入多条记录 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:19.431000             🧑  作者: Mango

代码示例2
-- Concatenates results into one single varchar with separator
SELECT LISTAGG(column_name, ',') WITHIN GROUP (ORDER BY column_name)
FROM YOUR_TABLE;