Click here to Skip to main content
12,747,461 members (36,378 online)
Rate this:
Please Sign up or sign in to vote.
See more: MySQL
Hi there,

What is the main difference between Null and Not Null.

Posted 11-Jul-12 5:20am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Null is an absence of a value, so Not Null is the absence of the absence of a value.

I.e. if there is no value, it it Null.
If there is any value, it is Not Null.

Null should not be confused with zero, or naught, as that is a value. Null is a special condition which is outside the range of values of any item. For example, if you remove 1, 2 and 3 from the set {1, 2, 3} you get the empty or null set {}. If you remove 1, 2 and 3 from the set {0, 1, 2, 3} you do not - you get a set with a single element in it: {0}

[edit]Typos: "teh" for "the", "absnce" for "absence" - OriginalGriff[/edit]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170215.1 | Last Updated 11 Jul 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100