问题
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>
how would I get all the values using xpath/xquery in SQL
Thanks
回答1:
The xpath //string will return all the values in the intire xml the xpath /string will return only the values in the root node.
And for using it in sql look at this post XPath to fetch SQL XML value
回答2:
in oracle database
you have XMLType (see this) data type..
by this datatype you can get all the value..
all the examples are there itself, please go through that site.
来源:https://stackoverflow.com/questions/7567845/xpath-xquery-sql-get-all-values