您的位置:首页 > 数据库 > Oracle

oracle 日志-oracle 异常事务回滚

2012-04-29 10:24 513 查看
create or replace procedure testcomitandexp()as
begin
insert into dept(deptno,dname,loc) values(50,'Tname','China');
insert into dept(deptno,dname,loc) values(60,'Tname1','China1');
insert into dept(deptno,dname,loc) values(7066666,'Tname2','China2');
dbms_output.put_line('insert is finish.please check');
commit;
exception when others then
rollback;
dbms_output.put_line('this insert is rollback.please check');
end
本文出自 “TEC-H” 博客,请务必保留此出处http://techzone.blog.51cto.com/958040/847022
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: