nvarchar concatenation / index / nvarchar(max) inexplicable behavior

后端 未结 2 565
礼貌的吻别
礼貌的吻别 2020-11-22 06:28

I today ran into a really weird problem in SQL Server (both 2008R2 and 2012). I\'m trying to build up a string using concatenation in combination with a select

2条回答
  •  别那么骄傲
    2020-11-22 07:00

    Seems a bit like this post: VARCHAR(MAX) acting weird when concatenating string

    The conclusion there: This approach to string concatenation does usually work but it isn't guaranteed. The official line in the KB article for a similar issue is that "The correct behavior for an aggregate concatenation query is undefined."

提交回复
热议问题