Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> XML contains and extract

XML contains and extract

From: <s.kiteley_at_abm-uk.com>
Date: 25 Jan 2005 04:10:54 -0800
Message-ID: <1106655054.433952.70380@f14g2000cwb.googlegroups.com>


Being fairly new to Oracle and XML can anyone compare and contrast the following two statements with regard to performance etc .

SELECT 1
FROM xml_table
WHERE EXTRACT(xml_text, '*/username/text()')getstringval() = 'FRED'

SELECT 1
FROM xml_table
WHERE CONTAINS(xml_text, 'FRED within username') > 0

Thanks

Steve Received on Tue Jan 25 2005 - 06:10:54 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US