SQL, How to Concatenate results?

前端 未结 7 1930
渐次进展
渐次进展 2020-11-29 08:08

I currently have a SQL query that returns a number of fields. I need one f the fields to be effectively a sub query sub that.

The Problem in detail:

相关标签:
7条回答
  • 2020-11-29 08:53

    In my opinion, if you are using SQL Server 2017 or later, using STRING_AGG( ... ) is the best solution:

    More at:

    https://stackoverflow.com/a/42778050/1260488

    0 讨论(0)
提交回复
热议问题