当前位置: 代码迷 >> Oracle管理 >> Oracle一路小题求解
  详细解决方案

Oracle一路小题求解

热度:17   发布时间:2016-04-24 04:40:47.0
Oracle一道小题求解
在emp表中先从把scott用户的sal减去50,然后再给king员工的sal加上50元,中间使用事

------解决方案--------------------
begin
update emp set sal=sal-50 where name='scott';
update emp set sal=sal+50 where name='king';
commit;
exception
 when others then
   rollback;
我也是初学者
  相关解决方案