Answers for "sql server results to comma delimited string"

0

sql server results to comma delimited string

DECLARE @csv VARCHAR(MAX)
SELECT @csv = COALESCE(@csv + ',' ,'') + book_title from Test.dbo.Books where book_id IN ( 101, 102, 103);
SELECT @csv 

Output
Head First SQL, SQL Puzzler, T-SQL Fundamentals
Posted by: Guest on March-11-2020

Code answers related to "sql server results to comma delimited string"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language