Skip to main contentSkip to solution

Which of the following is correct syntax for insertion of records in a table?

Solution

✅ Correct Option: 1

The SQL syntax for adding a row is INSERT INTO table_name VALUES (...)\texttt{INSERT INTO table\_name VALUES (...)}. The keyword after INSERT must be INTO, followed directly by the table name. Option 1 follows this form.


Option 2: the extra word "table" is not allowed in standard SQL. It is used in CREATE TABLE and DROP TABLE, which is why students confuse it.

Options 3 and 4: "to" and "in" are not SQL keywords in an INSERT statement.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question