To Return Comma separated column values

Madhu.b.rokkam
Posted by Madhu.b.rokkam under Sql Server category on | Points: 40 | Views : 2147
Declare @list varchar(1000)
Select @list = Coalesce(@list + ',', '') + columnName from TableName
Select @list

Comments or Responses

Login to post response