PRAGMA AUTONOMOUS

xiaoxiao2021-02-27  129



PRAGMA AUTONOMOUS_TRANSACTION中文翻译过来叫“自治事务”

自治事务允许你离开调用的事务上下文,执行一个独立的事务,然后返回调用的事务而不会影响到调用事务的状态。自治事务和调用事务不同,只有提交的事务才会在事务见共享。 The following types of PL/SQL blocks can be defined as autonomous transactions: 以下的PL/SQL代码块可以定义为自治事务。     * Stored procedures and functions. 存储过程和函数     * Local procedures and functions defined in a PL/SQL declaration block. 定义在声明块里的本地存储过程和函数     * Packaged procedures and functions. 打包的存储过程和函数     * Type methods. 类型方法     * Top-level anonymous blocks. 顶层的匿名块

参考:

http://blog.csdn.net/java2000_net/article/details/3710233

http://blog.csdn.net/pan_tian/article/details/7675800

转载请注明原文地址: https://www.6miu.com/read-13912.html

最新回复(0)