Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

rows to comma separated values in mssql

DECLARE @test NVARCHAR(max)  
SELECT @test = COALESCE(@test + ',', '') + field2 FROM #test
SELECT field2 = @test 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rows #comma #separated #values #mssql
ADD COMMENT
Topic
Name
1+7 =