Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OR short-circuit

122564Aug 8 2002
If I have a query that has an OR in it, does Oracle short-circuit evaluation when the first expression is true? For instance:

select * from tbl_1 where col_a > 0 OR col_b = 2

For a given row does the selection evaluation end when col_a = 0 is true, skipping the evaluation of col_b?



Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 10 2002
Added on Aug 8 2002
11 comments
655 views