Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Trigger created with compilation errors

Re: Trigger created with compilation errors

From: Odd Morten Sveås <odd.morten.sveas_at_accenture.com>
Date: 3 Oct 2002 13:30:44 -0700
Message-ID: <4306a83.0210031230.2c71a026@posting.google.com>


"iim" <lianghs_at_163.net> wrote in message news:<anhlrt$3fd$2_at_mail.cn99.com>...
> what is the problem ??
>
> Trigger created with compilation errors
>
>
> create trigger test
> after insert on test
> for each row
> begin
> end;
>
> why this can cause a warning error.

There is not alowed in PL/SQL to have a BEGIN END block without any comands. The same goes for then else end if or exception then when end.

create trigger test
after insert on test
for each row
begin
  null;
end;

This will compile fine. Received on Thu Oct 03 2002 - 15:30:44 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US