CREATE OR REPLACE TRIGGER T12
AFTER INSERT OR UPDATE OR DELETE
ON EMP
FOR EACH ROW
DECLARE
OP VARCHAR2(20);
NEW NUMBER(5);
BEGIN
IF INSERTING THEN
OP := 'INSERT';
ELSIF UPDATING THEN
OP :='UPDATE';
ELSE
OP :='DELETE';
END IF;
INSERT INTO EMP_AUDIT
VALUES(:NEW.EMPNO,:NEW.ENAME,:NEW.SAL,:OLD.EMPNO,:OLD.ENAME,:OLD.SAL);
END;
答案 0 :(得分:0)
您的SQL语法有错误;似乎错误在于:'在EMP上插入或更新或删除每个行声明后的触发器T12'
background: url('~/src/assets/img/box.jpg')
请检查 TRIGGER T12