MySQL UPDATE Statement
Modifying values of existing table rows using single column updates and JOIN updates.
-- Update single row column value UPDATE employees SET salary = 68000.00 WHERE employee_id = 1; -- Update table using INNER JOIN with department names UPDATE employees e JOIN departments d ON e.department_id = d.department_id SET e.salary = e.salary * 1.05 WHERE d.dept_name = 'Engineering';
Query OK, 1 row affected (0.01 sec) Rows matched: 1 Changed: 1