Skip
Arish's avatar

252. Practice - CHECK


Exercise: Age Validation

Create table where age must be >= 0.

Solution

sql
1CREATE TABLE people (
2  name TEXT,
3  age INTEGER CHECK(age >= 0)
4);