Rohan Gupta

Rohan Gupta

  • 1k
  • 755
  • 195.2k

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)