How to use GROUP BY to concatenate strings in SQL Server?

前端 未结 20 2530
无人及你
无人及你 2020-11-21 04:33

How do I get:

id       Name       Value
1          A          4
1          B          8
2          C          9

to

id               


        
20条回答
  •  迷失自我
    2020-11-21 05:01

    SQL Server 2005 and later allow you to create your own custom aggregate functions, including for things like concatenation- see the sample at the bottom of the linked article.

提交回复
热议问题