从存储在clob中的xml中提取特定信息

时间:2014-04-25 20:51:53

标签: xml oracle xquery

我有一个存储在CLOB中的长xml,我想从xml中获取特定数据,我使用的是这段代码:

    SELECT t.id, x.* FROM testSSF t,XMLTABLE ('/root/test[@id="2"]' PASSING xmltype(t.xml)
    COLUMNS testname VARCHAR2(30) PATH 'testname' ) x
    WHERE t.id = 2;

我收到此错误:

   ORA-19114: error during parsing the XQuery expression::  
   ORA-06550: line 1, column 13:
   PLS-00201:  identifier 'SYS.DBMS_XQUERYINT' must be declared
   ORA-06550: line 1, column 7:
   PL/SQL: Statement ignored

0 个答案:

没有答案