📜  sql server:选择列值作为逗号分隔的字符串 - SQL 代码示例
📅  最后修改于: 2022-03-11 15:04:58.929000             🧑  作者: Mango
代码示例1
DECLARE @SQL AS VARCHAR(8000)
SELECT @SQL = ISNULL(@SQL+',','') + ColumnName FROM TableName
SELECT @SQL