【文件属性】:
文件名称:SQL Server Table中XML列的操作代码
文件大小:38KB
文件格式:PDF
更新时间:2020-12-15 10:32:34
ab ble le
代码如下: –创建测试表 DECLARE @Users TABLE ( ID INT IDENTITY(1,1), UserInfo XML ) —插入测试数据 DECLARE @xml XML SET @xml=’ 1test1’ INSERT INTO @Users(UserInfo)VALUES(@xml) –插入单节点,(类型:as first,as last,after(默认),before) UPDATE @Users SET UserInfo.