簡體   English   中英

錯誤:ORA-04072:無效的觸發器類型

[英]Error: ORA-04072: invalid trigger type

我做了以下觸發:

create or replace trigger check_club_location
before of insert or update on club
for each row 
declare cnt number;
begin
    select count(*) into cnt
    from club
    where club.location = :new.location;

    if (cnt > 0) then
    raise_application_error (-20100, 'Erro: ja existe club nessa localizacao.');
    end if;
end;
/

在嘗試在Oracle APEX中運行此觸發器后,出現以下錯誤消息:

ORA-04072:無效的觸發器類型。

我已經嘗試了許多修復程序,但不幸的是,沒有一個對我的觸發器起作用。

你有錯字

before of insert or update on club

刪除“ of”,Oracle抱怨“ of”不是有效的觸發器類型

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM