标签:oracle pragma autonomous_tr 事务
在Oracle函数中进行insert操作就会报 ORA-14551: cannot perform a DML operation inside a query
解决方法:
需要再声明添加PRAGMA AUTONOMOUS_TRANSACTION;
例如:
PRAGMA AUTONOMOUS_TRANSACTION声明为自治事务
当前的函数作为已有事务的子事务运行,子事务的commit,rollback操作不影响父事务的状态ORA-14551: cannot perform a DML operation inside a query
标签:oracle pragma autonomous_tr 事务
原文地址:http://blog.csdn.net/lhl6688/article/details/43487847