日期:2014-05-17  浏览次数:20770 次

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;
我也是初学者