constraint
NOT NULL
Rejects missing values but does not reject empty strings in PostgreSQL or SQLite. Use another rule when empty strings are invalid. Target: PostgreSQL 17; focused syntax.
Formal Syntax & Structure
sql syntaxsql
name TEXT NOT NULLWorking Example
Example Snippetsql
CREATE TABLE t(name TEXT NOT NULL);INSERT INTO t VALUES (NULL);