NOT NULL specifies a column may not contain values.
Details
INSERTorUPDATEstatements containingNULLvalues are rejected. This includesINSERTstatements that do not include values for any columns that do not have a .
foo has columns a and b (and b does not have a DEFAULT VALUE), when you run the following command:
NULL value into column b. If that column has the NOT NULL constraint, the INSERT statement is rejected.
- To add the
NOT NULLconstraint to an existing table column, use the statement. - For more information about
NULL, see .
Syntax
You can only apply theNOT NULL constraint to individual columns.

