Databases · Junior · Question 69 of 75

What does created_at timestamptz NOT NULL DEFAULT now() do?

Explanation

Defaults apply only on insert. Tracking updated_at on every change needs application code or a trigger.

Further reading

Problem with a question

Databases · Junior · question 69

Test yourself

Take the Databases · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz