Skip
Arish's avatar

251. CHECK Constraint


CHECK

Validates data conditions.

sql
1CREATE TABLE products (
2  price REAL CHECK(price > 0)
3);

Only positive prices allowed.