SQL UPDATE Statement
The UPDATE statement is used to modify existing records in a table. You can update specific records using the WHERE clause, or update all records in a table.
In the statement below, we want to update the address of the customer with CustomerID 1.
Example
Update the address for the customer with CustomerID equal to 1:
UPDATE Customers
SET Address = 'New Address, 123'
WHERE CustomerID = 1;
In the example above, the SET clause specifies the column(s) to update, and the WHERE clause specifies which record(s) to modify.
Video Explanation
