更新:將女員工工資上調(diào)5%,其中t_person中有員工性別等信息,t_salary中有員工工資等信息,兩個表之間用personid相關(guān)聯(lián),請問應(yīng)該怎么更新……我寫的代碼如下: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 = '女')但是發(fā)現(xiàn)更新了所有的工資……不知道為什么……求幫助
- 1 回答
- 0 關(guān)注
- 668 瀏覽
添加回答
舉報
0/150
提交
取消