1
用于xml path('')输出
当我运行以下 select t.type from (values ('Green'),('Blue'),('Red')) as t(type) for xml path('') 我收到此输出 <type>Green</type> <type>Blue</type> <type>Red</type> 如果我运行以下 select t.type + '/' from (values ('Green'),('Blue'),('Red')) as t(type) for xml path('') 我收到此输出 Green/Blue/Red/ 为什么在select中添加串联会导致类型标签的删除和xml文件中一行的输出?运行SQL Server 2012。