使用ORACLE的自治事务AUTONOMOUS TRANSACTION
在自治事务里面commit或者rollback不会影响外部事务,可以做到单独成功,单独失败。在实际应用里面可以多多使用,提高开发效率。贴一个例子: autonomous_transactioncreate table t (msg varchar2(25));--自治提交create or replace procedure Autonomous_Insert a...
2011-03-04 15:20:37 ·
130 阅读 ·
0 评论