SyntaxFix
Write A Post
Hire A Developer
Questions
You need to add the column with a default of null, then alter the column to have default now().
null
now()
ALTER TABLE mytable ADD COLUMN created_at TIMESTAMP; ALTER TABLE mytable ALTER COLUMN created_at SET DEFAULT now();