Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql select merge multiple values

DECLARE @combinedString VARCHAR(MAX)
SELECT @combinedString = COALESCE(@combinedString + ', ', '') + column_name
FROM table_name
WHERE ID = 1234

SELECT @combinedString as StringValue
 
PREVIOUS NEXT
Tagged: #sql #select #merge #multiple #values
ADD COMMENT
Topic
Name
1+9 =