oracle 触发器 pragma autonomous_transaction

from:http://blog.csdn.net/ruru7989/article/details/30712987
一般情况下在触发器中是不能使用DDL语句的,使用自治事务可以实现 可以在触发器中加入: pragma autonomous_transaction; 表示自由事务处理。 CREATE OR REPLACE TRIGGER temp_ais AFTER insert ON atest for each row DECLARE pragma autonomous_transaction; BEGIN execute immediate 'DROP TABLE AAA'; end;
原文地址:https://www.cnblogs.com/liuqiyun/p/6560816.html