How Stuff and 'For Xml Path' work in Sql Server

后端 未结 9 1349
盖世英雄少女心
盖世英雄少女心 2020-11-21 13:49

Table is:

+----+------+
| Id | Name |
+----+------+    
| 1  | aaa  |
| 1  | bbb  |
| 1  | ccc  |
| 1  | ffffd  |
| 1  | eee  |
+----+------+

9条回答
  •  我寻月下人不归
    2020-11-21 14:04

    In for xml path, if we define any value like [ for xml path('ENVLOPE') ] then these tags will be added with each row:

    
    
    

提交回复
热议问题