Answers for "how to get column values in comma separated sql server without using stuff"

SQL
2

sql server: select column values as comma separated string

DECLARE @SQL AS VARCHAR(8000)
SELECT @SQL = ISNULL(@SQL+',','') + ColumnName FROM TableName
SELECT @SQL
Posted by: Guest on June-19-2020
2

sql column values comma separated

SELECT STRING_AGG(columnName,',') from tableName
Posted by: Guest on June-29-2021

Code answers related to "how to get column values in comma separated sql server without using stuff"

Code answers related to "SQL"

Browse Popular Code Answers by Language