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

Type for whole numbers

Which type will you use for a column storing a book's year of publication (a whole number)?

Answer options

  • VARCHAR
  • INT
  • DATE
  • BOOLEAN

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