Oracle 10g: Extract data (select) from XML (CLOB Type)

前端 未结 7 1312
[愿得一人]
[愿得一人] 2021-02-07 20:03

I\'m new in Oracle and I\'ve - maybe trivial - a problem in a select. (I\'m using Oracle 10g Express Edition).

I\'ve a DB with a field CLOB: mytab.xml This column have a

7条回答
  •  清酒与你
    2021-02-07 20:21

    You can achieve with below queries

    1. select extract(xmltype(xml), '//fax/text()').getStringVal() from mytab;

    2. select extractvalue(xmltype(xml), '//fax') from mytab;

提交回复
热议问题