Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql server: select column values as comma separated string

 DECLARE @SQL AS VARCHAR(8000)
SELECT @SQL = ISNULL(@SQL+',','') + ColumnName FROM TableName
SELECT @SQL
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sql #select #column #values #comma #separated #string
ADD COMMENT
Topic
Name
5+9 =