第五章第八题

update 员工表
set 工资=工资*1.1
where exists
(select *
from 项目表
where 项目表.项目主管=员工表.员工号)

update 员工表
set 工资=工资*1.1
where 员工号 in
(select 员工号
from 员工参与项目表
where 职责=‘项目总监’)

猜你喜欢

转载自blog.csdn.net/helloworld0906/article/details/84621632