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: Error when creating a trigger

Re: Error when creating a trigger

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Wed, 20 Oct 1999 12:56:05 GMT
Message-ID: <380dbb84.3206035@news.demon.nl>


On Wed, 20 Oct 1999 14:51:22 +0200, "Jean-Daniel TOULY" <jdtouly_at_staffandline.com> wrote:

>I try to create a trigger on a table named ACTION. But when I try to create
>an error message tells me that the trigger is created with compilation
>errors.
>
>Here is the code to create the trigger :
>
>DROP TRIGGER E_ACTION ;
>
>CREATE TRIGGER E_ACTION
> AFTER INSERT OR UPDATE ON Staff.ACTION
> FOR EACH ROW
> BEGIN
> END ;
>/
>
>
>Thank for your help
>

Try

CREATE TRIGGER E_ACTION
  AFTER INSERT OR UPDATE ON Staff.ACTION   FOR EACH ROW
  BEGIN
  NULL; -- Oracle just doesn't like empty PL/SQL blocks   END ;
/

Hth,

Sybrand Bakker, Oracle DBA

Sybrand Bakker, Oracle DBA Received on Wed Oct 20 1999 - 07:56:05 CDT

Original text of this message

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