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);
Create table where age must be >= 0.
1CREATE TABLE people (
2 name TEXT,
3 age INTEGER CHECK(age >= 0)
4);