Skip to main contentSkip to solution

Which of the following is the correct syntax of UPDATE command?

Solution

✅ Correct Option: 3

The syntax of UPDATE is UPDATE table_name SET column = value WHERE condition;\text{UPDATE table\_name SET column = value WHERE condition;}

Option 3 follows it: the table name (STUDENT) comes right after UPDATE, then SET assigns the new value to the column, and WHERE picks the row to change.


Options 1 and 2: "into" belongs to INSERT INTO, not UPDATE. Option 2 also leaves out the table name.

Option 4: it has no SET clause, so it does not say what to change.

Keyboard Shortcuts

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