为了账号安全,请及时绑定邮箱和手机立即绑定

oracle中数据更新问题

oracle中数据更新问题

慕村9548890 2018-12-03 08:04:48
更新:将女员工工资上调5%,其中t_person中有员工性别等信息,t_salary中有员工工资等信息,两个表之间用personid相关联,请问应该怎么更新……我写的代码如下:update t_salary set sal = sal * 1.05 where exists(select * from t_salary, t_person where t_salary.personid = t_person.personid and t_person.sex = '女')但是发现更新了所有的工资……不知道为什么……求帮助
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 631 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信