SQL242 #将所有获取奖金的员工当前的薪水增加10%#
将所有获取奖金的员工当前的薪水增加10%
https://www.nowcoder.com/practice/d3b058dcc94147e09352eb76f93b3274
update salaries set salary = salary*1.1
where to_date='9999-01-01'
where to_date='9999-01-01'
and emp_no in (select emp_no from emp_bonus)
本题考查update语法,用于数据更新,语法为:
update {表名} set {列名}={新的值}
where {条件}