Skip
Arish's avatar

245. UNIQUE Constraint


UNIQUE

Prevents duplicate values.

sql
1CREATE TABLE users (
2  id INTEGER,
3  email TEXT UNIQUE
4);

No two rows can have same email.