郝文标的博客

  博客园 :: 首页 :: 联系 :: 订阅 订阅 :: 管理
  26 Posts :: 0 Stories :: 7 Comments :: 0 Trackbacks

公告

SQL XML

摘要: declare @myxml xmlset @myxml='<?xml version="1.0" encoding="gb2312"?> <root> <item id="1"> </item> </root>'select @myxml--1、插入item的第一个子元素 set @myxml.modify('insert <co...阅读全文
posted @ 2010-04-26 20:56 恭喜发财 阅读(27) | 评论 (0) 编辑

摘要: 10月25日sql:variable() binding and modify method of xquery: insert XML DML/* In SQL Server 2005, we can use sql:variable and sql:column function to bind relational data into XML by means of xquery. Howe...阅读全文
posted @ 2010-04-25 17:50 恭喜发财 阅读(88) | 评论 (0) 编辑