UPDATE table_name
SET column1 = value1, column2 = value2, ...
WHERE condition;
table_name
: Specifies the name of the table that you want to update.SET
: Specifies the columns and their new values that you want to update.column1 = value1, column2 = value2, ...
: Specifies the columns and their new values.WHERE condition
: Optional parameter that specifies the conditions that must be met for the update to occur. If not specified, all rows in the table will be updated.employees
table:UPDATE employees
SET Salary = 5500
WHERE Name = 'John Doe';
|
Explore Courses for Software Development exam
|
|
Explore Courses for Software Development exam
|