单行子查询在execute语句中返回多个错误

时间:2016-09-30 10:41:32

标签: oracle plsql

为什么我收到此声明的以下错误?

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;
/

我添加图像,使错误变得更加清晰 enter image description here

1 个答案:

答案 0 :(得分:0)

在架构级别上声明了触发器

CREATE OR REPLACE TRIGGER LOG_ACTIVITY AFTER DDL ON SCHEMA

当我删除它时,它工作