waterye

PL/SQL Transaction

spool log.txt;
select to_char(sysdate, 'yyyy-mm-dd HH24:MI:SS'from dual;
BEGIN    
    
delete from t where id = 2;
    
delete from abc where id = 5;     
    
COMMIT;
EXCEPTION
  
WHEN OTHERS THEN
    
ROLLBACK;
END;
/
select to_char(sysdate, 'yyyy-mm-dd HH24:MI:SS'from dual;
spool 
off;

参考: PL/SQL User's Guide and Reference

posted on 2005-12-29 12:13 waterye 阅读(648) 评论(0)  编辑  收藏 所属分类: oracle


只有注册用户登录后才能发表评论。


网站导航: