SQL UPDATE Query With Multiple columns & Rows

SQL UPDATE Query

If you want to Update or Modify the existing records in a table using SQL UPDATE Query. You can use the WHERE clause with the UPDATE query to update the selected rows, otherwise, you do not use WHERE clause then all the rows would be affected.

UPDATE General Syntax

SQL UPDATE Query

UPDATE append a WHERE clause:

Ques: Supplier John Carry (Id = 111) has moved to another city: update their, Address, city, Phone and Fax

As a Result: Finally, update table from column name

Employee
Id
CompanyName
Position
Address
City
Phone

Explanation: finally, Record will be updated in table row where id = 111 with the respective column

Resource
SQL