a***@webmail.co.za
2013-04-24 14:02:36 UTC
Using MSSQL 2008 R2 this query:
SELECT tblusers.id
FROM tblusers
WHERE tblusers.name = 'smith'
gives me a few rows:
id
123
678
987
How do I convert that column into a string containing a coma separated list of the id's? Example:
123,678,987
Thanks
SELECT tblusers.id
FROM tblusers
WHERE tblusers.name = 'smith'
gives me a few rows:
id
123
678
987
How do I convert that column into a string containing a coma separated list of the id's? Example:
123,678,987
Thanks