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;

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2021-12-13
  • 2021-04-20
  • 2021-09-11
  • 2021-10-19
猜你喜欢
  • 2022-12-23
  • 2021-11-29
  • 2021-06-01
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2021-09-30
相关资源
相似解决方案