Click here to Skip to main content
15,891,864 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
Hi there,

What is the main difference between Null and Not Null.

Thanks,
Enos
Posted

1 solution

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]
 
Share this answer
 
v2

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900