Skip
Arish's avatar

243. NOT NULL Constraint


NOT NULL

Prevents NULL values.

sql
1CREATE TABLE students (
2  id INTEGER NOT NULL,
3  name TEXT NOT NULL
4);

INSERT will fail if these are NULL.