为什么我收到此声明的以下错误?
DECLARE COL_COUNT NUMBER;
BEGIN
COL_COUNT :=0;
SELECT COUNT(1) INTO COL_COUNT FROM USER_OBJECTS WHERE OBJECT_NAME = 'P_TEST' AND OBJECT_TYPE = 'PROCEDURE';
IF COL_COUNT = 0 THEN
EXECUTE IMMEDIATE ('CREATE or replace PROCEDURE P_TEST IS BEGIN null; END;');
END IF;
END;
/
答案 0 :(得分:0)
在架构级别上声明了触发器
CREATE OR REPLACE TRIGGER LOG_ACTIVITY AFTER DDL ON SCHEMA
当我删除它时,它工作