Oracle_ Null value judgment

Source: Internet
Author: User

Oracle NULL value Test
Compare items Is null is NOT NULL Nvl Description
Null True False True
Null True False True
' NULL ' False True False
' NULL ' False True False
' Null ' False True False
‘‘ True False True
‘ ‘ False True False
Trim (") True False True

1, NULL and 0 in Oracle, empty strings, spaces, including null and NULL are also unequal.
2. Null is still the result of the arithmetic operation in Oracle.
3, the processing method has a NVL function, the comparison method is null or is not NULL.
4. Null cannot be indexed, such as SELECT COUNT (null) from dual query result is 0.
5, the null sort is larger than all other types, one can be empty, and the preceding is null data.

Oracle_ Null value judgment

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.