Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: MySQL
Hi there,
 
What is the main difference between Null and Not Null.
 
Thanks,
Enos
Posted 11-Jul-12 4:20am

1 solution

Rate this: bad
good
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]
  Permalink  
v2

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 446
1 OriginalGriff 325
2 Yogesh Kumar Tyagi 304
3 Maciej Los 235
4 Prakriti Goyal 200
0 OriginalGriff 6,417
1 Sergey Alexandrovich Kryukov 5,344
2 Maciej Los 3,434
3 Peter Leow 3,259
4 DamithSL 2,490


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 11 Jul 2012
Copyright © CodeProject, 1999-2014
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