Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 2. Retrieving Information from D... > Understanding Null Values

Understanding Null Values

How does a database represent a value that is unknown? The answer is to use a special value, known as a null value. A null value is not a blank string—it is a distinct value. A null value means the value for the column is unknown.

When you select a column that contains a null value, you see nothing in that column. You saw this (or rather, didn’t see it!) in the earlier examples of selecting rows from the customers table: customer #4 has a null value in the dob column, and customer #5 has a null value in the phone column.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial