Oracle错误:ORA-04079:无效的触发器规范

时间:2015-05-02 21:28:11

标签: oracle triggers

我是Oracle的新手,想知道如何让这个触发器工作。我可以单独执行每个触发器,但如果有意义的话,我需要在同一个触发器中使用它们。

    create trigger ID_trigger
    before insert on crime, evidence, offence, officer
    for each row
    begin
    select crime_seq.nextval into :new.crime_id from dual
    and officer_seq.nextval into :new.officer_id from dual
    and evidence_seq.nextval into :new.evidence_id from dual
    and offence_seq.nextval into :new.offence_id from dual;
    end;

我最初为每个表都有一个触发器。但是,当将数据提交到我的表单时,触发器似乎覆盖了前一个

0 个答案:

没有答案