IntermediateBasic SELECT
Add a DEFAULT value to a column
The query
SQL
ALTER TABLE employees
ALTER COLUMN status SET DEFAULT 'active';Note
“Only applies to new rows inserted without specifying this column. Existing rows are unaffected.
ALTER TABLE employees
ALTER COLUMN status SET DEFAULT 'active';Note
“Only applies to new rows inserted without specifying this column. Existing rows are unaffected.