Oracle XML function ExistsNode. : existsNode « XML « Oracle PL/SQL Tutorial






SQL>
SQL> CREATE TABLE myTable(
  2      id  NUMBER PRIMARY KEY
  3      ,doc XMLType NOT NULL
  4  )
  5  XMLTYPE doc STORE AS CLOB
  6  /

Table created.

SQL>
SQL> -- Demo the selfish style of invocation
SQL> select COUNT(*)
  2  from myTable x
  3  where x.doc.existsnode('/message/greeting') = 1
  4  /

  COUNT(*)
----------
         0

1 row selected.

SQL>
SQL> drop table myTable;

Table dropped.








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')