update 表名
set
字段1 = 值1,
字段2 = 值2,
...
where 筛选条件
#查找到to_date="9999-01-01"的员工的员工编号
update salaries set salary= 1.1*salary where to_date="9999-01-01"
and emp_no in(select emp_no from emp_bonus)
两表关联 update emp_bonus e join salaries s on e.emp_no =s.emp_no set s.salary= 1.1*salary where s.to_date="9999-01-01"