Question · SQL and MySQL course · Module 4: Creating tables (DDL)

Primary key in the project

When designing a new table, which pair of constraints do we combine with the id column to make it an auto-numbered primary key?

Answer options

  • AUTO_INCREMENT PRIMARY KEY
  • DEFAULT UNIQUE
  • NOT NULL DROP
  • ENUM PRIMARY KEY

You can check the correct answer by solving this task in the CodeWorlds game.