代码如下: –创建测试表 DECLARE @Users TABLE ( ID INT IDENTITY(1,1), UserInfo XML ) —插入测试数据 DECLARE @xml XML SET @xml=’ 1 test1 ’ INSERT INTO @Users(UserInfo)VALUES(@xml) –插入单节点,(类型:as first,as last,after(默认),before) UPDATE @Users SET UserInfo.