Answers for "1 column values in to 1 single row in sql"

SQL
0

1 column values in to 1 single row in sql

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

SELECT @combinedString as StringValue
Posted by: Guest on August-27-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language