SQL NOT NULL Constraint

NOT NULL constraint enforces a field to always contain a value. This means that you cannot insert a new record, or update a record without adding a value to this field.


SYNTAX :
CREATE TABLE table_name
(column1 datatype NOT NULL,
column2 datatype,
.....
);




Online Execute/Compile