Why SQL Server Ignores vaules in string concatenation when ORDER BY clause specified

后端 未结 1 1949
隐瞒了意图╮
隐瞒了意图╮ 2020-12-20 01:57

I have the following table

Created    Comment
2010/10/10 Text1 
2010/11/11 Text2
2010/12/12 Text3

I need gather all comments into the singl

相关标签:
1条回答
  • 2020-12-20 02:39

    Because you are relying on undocumented behaviour.

    Microsoft say "The correct behavior for an aggregate concatenation query is undefined.". If the compute scalar moves to the wrong place in the plan then it just stops working!

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