2
Answers

how to split comma separated values in sql without function

Rohan Gupta

Rohan Gupta

9y
568
1
 DECLARE @list VARCHAR(MAX)
SELECT @list = COALESCE(@listStr+',' , '') + columnname
FROM tablename
SELECT @list
Answers (2)