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 -> Re: XML contains and extract

Re: XML contains and extract

From: DA Morgan <damorgan_at_x.washington.edu>
Date: Tue, 25 Jan 2005 12:59:44 -0800
Message-ID: <1106686631.643214@yasure>


s.kiteley_at_abm-uk.com wrote:

> 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

I would expect not. The only comparison that is of value is one done with your data, on your hardware, with your operating system and version of Oracle. How hard would it be for you to do this yourself?

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace 'x' with 'u' to respond)
Received on Tue Jan 25 2005 - 14:59:44 CST

Original text of this message

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