Skip
Arish's avatar

250. Practice - DEFAULT


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);