1. 首页
  2. 存储
  3. HP
  4. SQL Server Table中XML列的操作代码

SQL Server Table中XML列的操作代码

上传者: 2020-12-16 23:14:06上传 PDF文件 38.49KB 热度 16次
代码如下: –创建测试表 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.
下载地址
用户评论