Databases · Junior · Question 8 of 75

How do you get an auto-incrementing ID column in modern PostgreSQL?

Explanation

Identity columns are the SQL-standard way. serial still works but is older. AUTO_INCREMENT is MySQL syntax.

Further reading

Problem with a question

Databases · Junior · question 8

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