Find rows that contain the ROWSET/ROW node : existsNode « XML « Oracle PL/SQL Tutorial






SQL> CREATE TABLE myTable
  2    (myID            NUMBER PRIMARY KEY,
  3     myValue     XMLTYPE )
  4     XMLTYPE myValue STORE AS CLOB
  5  /

Table created.



SQL>
SQL>
SQL> 
SQL> select myID
  2  from myTable
  3  where existsnode(myValue, '/ROWSET/ROW')  = 1
  4  /

no rows selected

SQL>
SQL>
SQL> drop table myTable;

Table dropped.

SQL>








33.6.existsNode
33.6.1.Call existsNode() function from xmltype data
33.6.2.Count(*) and existsnode()
33.6.3.Find rows that contain the ROWSET/ROW node
33.6.4.Oracle XML function ExistsNode.
33.6.5.existsnode and where clause
33.6.6.existsnode(myValue, '/ROWSET')