Loading lesson path
Concept visual
Start at both ends
â® Previous Next â¯
If a field in a table is optional, it is possible to insert or update a record without adding any value to this field. This way, the field will be saved with a NULL value.
value represents an unknown, missing, or inapplicable data in a database field. It is not a value itself, but a placeholder to indicate the absence of data.
value is different from zero (0) or an empty string (''). A field with a NULL value is one that has been left blank upon record creation.
It is not possible to test for NULL values with comparison operators, such as =, <, or <>. We will have to use the IS NULL and
operators instead.
column_names
table_name
column_name
IS NULL;column_names
table_name
column_name
IS NOT NULL;Customers table used in the examples: