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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Ordering operands of a WHERE clause

Re: Ordering operands of a WHERE clause

From: Sybrand Bakker <gooiditweg_at_sybrandb.demon.nl>
Date: Tue, 30 Dec 2003 20:05:36 +0100
Message-ID: <30j3vvs1lr8fc008g4k93kr83g4bempce9@4ax.com>


On Tue, 30 Dec 2003 17:58:21 +0000 (UTC), weberm_at_polaris.net (Ubiquitous) wrote:

>I have this SELECT statement in a cursor that's giving me performance
>problems and am wondering if reordering the conditions in the WHERE
>clause would make a difference in performance. Does it help if one
>lists the most restrictive conditions first?
>

Not very likely. You may want to use ( ) however, to make sure the parser is using the correct mathematical priorities. This used to apply especially if you used x>= ... and x <= ... and instead of x between ... and ... and

--
Sybrand Bakker, Senior Oracle DBA
Received on Tue Dec 30 2003 - 13:05:36 CST

Original text of this message

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