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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: is there better way than the call a function twice.

Re: is there better way than the call a function twice.

From: Connor McDonald <hamcdc_at_yahoo.co.uk>
Date: Wed, 3 Nov 2004 09:54:10 +0000 (GMT)
Message-ID: <20041103095410.17842.qmail@web86909.mail.ukl.yahoo.com>


try

select x, x from
 ( select ugly x from a where rownum > 0 )

or

select x, x from
 ( select /*+ NO_MERGE */ ugly x from a )

hth
connor


Connor McDonald
Co-author: "Mastering Oracle PL/SQL - Practical Solutions" ISBN: 1590592174 web: http://www.oracledba.co.uk
web: http://www.oaktable.net
email: connor_mcdonald_at_yahoo.com

Coming Soon! "Oracle Insight - Tales of the OakTable"

"GIVE a man a fish and he will eat for a day. But TEACH him how to fish, and...he will sit in a boat and drink beer all day"


                                  
___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com
--
http://www.freelists.org/webpage/oracle-l
Received on Wed Nov 03 2004 - 03:49:58 CST

Original text of this message

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