Which SQL statement is used to update data in a database?
2025
Which SQL statement is used to update data in a database?
- A.
ALTER
- B.
CHANGE
- C.
UPDATE
- 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;