读书人

Oracle一路小题求解

发布时间: 2013-06-19 10:26:41 作者: rapoo

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

读书人网 >oracle

热点推荐