Rohan Gupta

Rohan Gupta

  • 818
  • 758
  • 196.1k

how to split comma separated values in sql without function

Jun 29 2015 3:06 AM
 DECLARE @list VARCHAR(MAX)
SELECT @list = COALESCE(@listStr+',' , '') + columnname
FROM tablename
SELECT @list

Answers (2)