Exercise: Default Status
Create table with default active status.
Solution
sql
1CREATE TABLE users (
2 id INTEGER,
3 name TEXT,
4 active INTEGER DEFAULT 1
5);
Create table with default active status.
1CREATE TABLE users (
2 id INTEGER,
3 name TEXT,
4 active INTEGER DEFAULT 1
5);