All Questions
Postgresql easy

In modern PostgreSQL, what is the standard-compliant way to define a column that automatically increments for unique record identification?

  1. A AUTO_INCREMENT: A standard keyword used in MySQL to manage sequences.
  2. B GENERATED ALWAYS AS IDENTITY: The SQL-standard way to manage ID sequences.
  3. C PRIMARY KEY INCREMENT: A specialized constraint for table-level UID logic.
  4. D UUID_V4_DEFAULT: A global identifier that replaces the need for integers.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions