xpath/xquery sql - 获取所有值 [英] xpath/xquery sql - Get all values
本文介绍了xpath/xquery sql - 获取所有值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一大堆 xml..
Hi I have a blob of xml..
<string>1</string>
<string>2</string>
<string>3</string>
<string>4</string>
<string>11</string>
<string>1211</string>
<string>12331</string>
如何在 SQL 中使用 xpath/xquery 获取所有值
how would I get all the values using xpath/xquery in SQL
谢谢
推荐答案
xpath //string
将返回整个 xml 中的所有值 xpath /string
将只返回根节点中的值.
The xpath //string
will return all the values in the intire xml the xpath /string
will return only the values in the root node.
要在 sql 中使用它,请查看这篇文章 XPath 以获取 SQL XML 值
And for using it in sql look at this post XPath to fetch SQL XML value
这篇关于xpath/xquery sql - 获取所有值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文