Execution sequence of and, or, not in Oracle where statement

Source: Internet
Author: User

And, or, not:

1. a and B (sequential execution)

(1) true if a and B are the same as true,

(2) a, B, and false are false,

[1] If expression a is false, there is no need to judge later. The entire expression must be false;

[2] if a is true, the subsequent judgment is made. If B is true, the expression is true. If B is false, the entire expression is false;

2. a or B (sequential execution)

(1) true for a and B

[1] if a is true, there is no need to judge it. The expression is true;

[2] if a is false, continue to judge B. If B is false, the expression is false. If B is true, the expression is true;

(2) If a and B are the same as false, the expression returns false.

In this case, a is false, and B is also false;

3. not a (execute a first and obtain the inverse)

Invert

A-> true, not a-> false;

A-> false, not a-> true;

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.