Databases · Junior · Question 70 of 75

How do you add a column to an existing table?

Explanation

In PostgreSQL adding a nullable column (or one with a constant default) is instant even on big tables. Changes like this belong in a migration.

Further reading

Problem with a question

Databases · Junior · question 70

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