DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: How does Oracle evaluate WHERE conditions

  1. #1
    Join Date
    Mar 2001
    Posts
    109
    There is a query like:

    SELECT * FROM tab WHERE condition1 AND condition2 AND condion3;

    If condition1 is FALSE, does Oracle still evaluate condition2 and condition3, or ignore to evaluate condition2 and condition3.

    Thanks for any help.
    zm

  2. #2
    Join Date
    Sep 2001
    Posts
    30
    Hi,

    It does not make any sense for Oracle to evaluate other conditions in an AND where clause when one comdition is false.

    Jason

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Oracle DB Resources ( http://oracle.dbresources.com)

    - Online community for Oracle DBAs and Developers -

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  3. #3
    Join Date
    Jan 2001
    Posts
    3,134
    Also, in a select from where order by Oracle will process in this order.

    1)FROM
    2)WHERE
    3)SELECT
    4)ORDER BY

    These are the things you learn when you take PL/SQL three times, woo hoo!

    MH
    I remember when this place was cool.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width