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: ** SQL WHERE clause order

Re: ** SQL WHERE clause order

From: Yong Huang <yong321_at_yahoo.com>
Date: Tue, 04 Nov 2003 14:44:29 -0800
Message-ID: <F001.005D5930.20031104144429@fatcity.com>


Hi, Joshi,

The only hint that may affect the evaluation order in the WHERE clause is ORDERED_PREDICATES. But I don't know who actually got it to work. The chapter "Optimizer Hints" in Performance Tuning Guide talks about it. It also says if you don't have this hint, there's a certain order in which Oracle evaluates predicates in the WHERE clause. Not sure if that's true. You can try switching the predicates around and look at the execution plan for each.

Documentation is wrong in saying that you should be put that hint in the WHERE clause.

Yong Huang


Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Yong Huang
  INET: yong321_at_yahoo.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Tue Nov 04 2003 - 16:44:29 CST

Original text of this message

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