Oacle 로그 - oracle 이상 트 랜 잭 션 스크롤 백

2228 단어 Oacle이상 하 다

  
  
  
  
  1. create or replace procedure testcomitandexp()as 
  2. begin 
  3.   insert into dept(deptno,dname,loc) values(50,'Tname','China'); 
  4.   insert into dept(deptno,dname,loc) values(60,'Tname1','China1'); 
  5.   insert into dept(deptno,dname,loc) values(7066666,'Tname2','China2'); 
  6.   dbms_output.put_line('insert is finish.please check'); 
  7.   commit
  8.   exception when others then 
  9.     rollback
  10.     dbms_output.put_line('this insert is rollback.please check');     
  11. end 

좋은 웹페이지 즐겨찾기