Change a column default value.
Section: Schemas, Tables, and Core DDL
Set column default
sql
sql
ALTER TABLE public.users ALTER COLUMN created_at SET DEFAULT now();Explanation
See summary for usage details.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Schemas, Tables, and Core DDL