帮忙查查这句话错在那:
create or replace trigger t2
after INSERT OR DELETE OR UPDATE ON TB1
begin
if INSERTING then
insert into op_log values(user,sysdate,'I');
elseif UPDATING then
insert into op_log values(user,sysdate,'U');
else
insert into op_log values(user,sysdate,'D');
end if;
end;
/
---------------无法通过编译...
用show errors显示:
4/8 pls-00103 出现符号updatinig在需要下列之一时:
:= . ( @ % ;
9/4 pls-00103 :出现";"在需要下列之一时:
if
create or replace trigger t2
after INSERT OR DELETE OR UPDATE ON TB1
begin
if INSERTING then
insert into op_log values(user,sysdate,'I');
elseif UPDATING then
insert into op_log values(user,sysdate,'U');
else
insert into op_log values(user,sysdate,'D');
end if;
end;
/
---------------无法通过编译...
用show errors显示:
4/8 pls-00103 出现符号updatinig在需要下列之一时:
:= . ( @ % ;
9/4 pls-00103 :出现";"在需要下列之一时:
if
PL/SQL 和 SQL语句
ELSIF < 其它布尔表达式> THEN
其它语句
END IF;