<!DOCTYPE PODesc SYSTEM "PODesc.dtd"><PODesc><doc_type>P</doc_type><order_no>62249675</order_no><order_type>N/B</order_type><order_type_desc>N/B</order_type_desc><supplier>10167</supplier><qc_ind>N</qc_ind><not_before_date><year>2016</year><month>09</month><day>22</day><hour>00</hour><minute>00</minute><second>00</second></not_before_date><not_after_date><year>2016</year><month>09</month><day>22</day><hour>00</hour><minute>00</minute><second>00</second></not_after_date><otb_eow_date><year>2016</year><month>09</month><day>25</day><hour>00</hour><minute>00</minute><second>00</second></otb_eow_date><earliest_ship_date><year>2016</year><month>09</month><day>22</day><hour>00</hour><minute>00</minute><second>00</second></earliest_ship_date><latest_ship_date><year>2016</year><month>09</month><day>22</day><hour>00</hour><minute>00</minute><second>00</second></latest_ship_date><terms>10003</terms><terms_code>45 days</terms_code><freight_terms>SHIP</freight_terms><cust_order>N</cust_order><status>A</status><exchange_rate>1</exchange_rate><bill_to_id>BT</bill_to_id><po_type>00</po_type><po_type_desc>No Store Cluster</po_type_desc><pre_mark_ind>N</pre_mark_ind><currency_code>CZK</currency_code><comment_desc>created by the Tesco Group Ordering System</comment_desc><PODtl><item>120000935</item><physical_location_type>W</physical_location_type><physical_location>207</physical_location><physical_qty_ordered>625</physical_qty_ordered><unit_cost>281.5</unit_cost><origin_country_id>CZ</origin_country_id><supp_pack_size>25</supp_pack_size><earliest_ship_date><year>2016</year><month>09</month><day>22</day><hour>00</hour><minute>00</minute><second>00</second></earliest_ship_date><latest_ship_date><year>2016</year><month>09</month><day>22</day><hour>00</hour><minute>00</minute><second>00</second></latest_ship_date><packing_method>FLAT</packing_method><round_lvl>C</round_lvl><POVirtualDtl><location_type>W</location_type><location>507</location><qty_ordered>625</qty_ordered></POVirtualDtl></PODtl><PODtl><item>218333522</item><physical_location_type>W</physical_location_type><physical_location>207</physical_location><physical_qty_ordered>180</physical_qty_ordered><unit_cost>230.94</unit_cost><origin_country_id>CZ</origin_country_id><supp_pack_size>18</supp_pack_size><earliest_ship_date><year>2016</year><month>09</month><day>22</day><hour>00</hour><minute>00</minute><second>00</second></earliest_ship_date><latest_ship_date><year>2016</year><month>09</month><day>22</day><hour>00</hour><minute>00</minute><second>00</second></latest_ship_date><packing_method>FLAT</packing_method><round_lvl>C</round_lvl><POVirtualDtl><location_type>W</location_type><location>507</location><qty_ordered>180</qty_ordered></POVirtualDtl></PODtl><PODtl><item>218333416</item>
上記は、表の列に格納されるXMLファイルの一部です。私はタグ<item>
と</item>
の間のすべての文字列を抽出したいと思います。 1つのファイルに複数の値があり、<item>
です。私はoracle 9iを使用しています。誰もそれを適切なクエリを提供してくださいできますか?値のXPath
があなたのXMLであるかデータ型CLOB(Oracle 9i)の表に格納されたXMLから複数のサブストリングを抽出する
-2
A
答えて
0
図出し、その後、EXTRACTVALUE
http://docs.oracle.com/cd/B10501_01/appdev.920/a96620/xdb04cre.htm#1024805
例えばを使用します
select <your_rowid>, extractvalue(xmltype(<your_column>), <your_xpath>) from <your_table>
複数の値の場合、複数の抽出値を同じセレクトで実行するだけです。
関連する問題
- 1. CLOBとして格納されたXMLからデータを抽出する
- 2. Oracle SQLの変数にテーブルからCLOBデータを格納
- 3. clobから複数のフィールドを抽出
- 4. CLOB JSONデータをOracleのローカル変数に抽出する
- 5. Oracle 12c:XML(CLOBタイプ)からデータを抽出する(選択)
- 6. Oracleの複雑なXMLからデータを抽出する
- 7. Oracleのxmlデータから値を抽出
- 8. Oracle DatabaseのSQLを使用したCLOBデータからのデータの抽出
- 9. xmlに格納されたデータからファイルを作成する
- 10. 複数のOracleクエリーから一意のデータを格納するためのベストプラクティス
- 11. VBA Excel:CHMファイルに格納されたデータの使用/抽出
- 12. 複数の解析されたXMLファイルのデータを格納する - .NET
- 13. XMLをclobとして格納したテーブルからsqlを使用してタグ名を抽出したいとします。以下のように(ORACLE)
- 14. CLOBから特定の行を抽出する - ORACLE
- 15. Oracleの正規表現は、私のテーブルのCLOB列に保存されたXMLからサブXMLをフェッチする
- 16. 複数のデータ型を1つのHashMapに格納する
- 17. Oracle Clobのノード値の抽出
- 18. データベースから取り出されたデータを変数に格納する方法。
- 19. 複数の出力行をシェルアウトから返されたrubyに格納
- 20. SQLを使用してxmlから値を抽出するCLOB
- 21. ISOYearMonthを格納するapt Oracleデータ型は何ですか?
- 22. Oracle:複数のMSSQLからデータを選択し、ORACLEの1つのテーブルに格納する方法は?
- 23. C++でoracle dbから受け取った数値データ型に格納できる変数のタイプ
- 24. SQL Server 2008のXMLデータ型にUnicodeデータを格納
- 25. Oracle SQL - Clob型の列のXMLノードをカウントする
- 26. JavaオブジェクトをOracleデータベースに格納するための最良のデータ型
- 27. 複数のデータを格納するAndroid
- 28. 弱い構造化されたXMLファイルからのデータ抽出
- 29. 複数のコールバックからデータを格納するnode.js javascript
- 30. CLOBデータをDB2のCLOB定義列に格納できません