阅读背景:

如何在SQLXML中获取每个属性的名称、值和父元素名称?

来源:互联网 

Given this SQL:

鉴于这种SQL:

DECLARE @content XML
SET @content =
'<people>
  <person id="1" bimble="1">
    <firstname bobble="gomble">John</firstname>
    <surname>Doe</surname>
  </person>
  <person id="2" bimble="11">
    <firstname bobble="zoom">Mary</firstname>
    <surname>Jane</surname>
  </person>
  <person id="4" bimble="10">
    <firstname bobble="womble">Matt</firstname>
    <surname>Spanner</surname>
  </person>
</people>'
DECLARE @content X



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: