Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql server: how to concatenate column data using comma

 DECLARE @SQL AS VARCHAR(8000)
SELECT @SQL = ISNULL(@SQL+',','') + ColumnName FROM TableName
SELECT @SQL
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sql #concatenate #column #data #comma
ADD COMMENT
Topic
Name
8+4 =