when to use a not null constraint in sql code example Example: not null constraint ID int(10) NOT NULL;