Which SQL statement is used to update data in a database?

2025

Which SQL statement is used to update data in a database?

  1. A.

    ALTER

  2. B.

    CHANGE

  3. C.

    UPDATE

  4. D.

    MODIFY

Attempted by 1255 students.

Show answer & explanation

Correct answer: C

The correct SQL statement to update data in a database is UPDATE. The UPDATE command is used to modify existing records in a table. It allows you to change the values of one or more columns based on a specific condition. Example syntax: UPDATE table_name SET column1 = value1 WHERE condition;

Explore the full course: Bpsc