Skip
Arish's avatar

249. DEFAULT Constraint


DEFAULT

Provides default value when none specified.

sql
1CREATE TABLE posts (
2  id INTEGER,
3  status TEXT DEFAULT 'draft'
4);