DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SQL
How to concatenate text from multiple rows into a single text string in SQL Server
SELECT STRING_AGG(Name, ', ') AS Departments FROM HumanResources.Department;
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#How
#concatenate
#text
#multiple
#rows
#single
#text
#string
#SQL
#Server
ADD COMMENT
Topic
COMMENT
Name
7+9 =
Submit