Answers for "sql rows to comma separated values"

SQL
1

rows to comma separated values in mssql

DECLARE @test NVARCHAR(max)  
SELECT @test = COALESCE(@test + ',', '') + field2 FROM #test
SELECT field2 = @test
Posted by: Guest on June-16-2020
2

sql column values comma separated

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

Code answers related to "sql rows to comma separated values"

Code answers related to "SQL"

Browse Popular Code Answers by Language