Question:

In SQL which command is used to change data in a table ?

Show Hint

Remember the three main data-changing commands: `INSERT` to add new rows, `UPDATE` to change existing rows, and `DELETE` to remove rows.
  • Update
  • Insert
  • Browse
  • None of these
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

Step 1: Understand the task. The task is to modify or "change" existing data records (rows) in a table.
Step 2: Differentiate the relevant Data Manipulation Language (DML) commands.

(A) \text{UPDATE}: This command is specifically used to modify existing records in a table. For example, `UPDATE customers SET city = 'New York' WHERE customerId = 1;`. This fits the description.
(B) \text{INSERT}: This command is used to add new records to a table.
(C) \text{Browse}: This is not a standard SQL command for data manipulation. Data is viewed using the `SELECT` command.
The correct command to change existing data is \text{UPDATE}.
Was this answer helpful?
0
0