Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Error when creating a trigger
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