Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Error when creating a trigger
A copy of this was sent to "Jean-Daniel TOULY" <jdtouly_at_staffandline.com>
(if that email address didn't require changing)
On Wed, 20 Oct 1999 14:51:22 +0200, you 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
>
show errors trigger e_action;
in sqlplus will show you that something other then END was expected after BEGIN. your trigger body must be at least:
begin
null;
end;
/
--
See http://osi.oracle.com/~tkyte/ for my columns 'Digging-in to Oracle8i'...
Current article is "Part I of V, Autonomous Transactions" updated June 21'st
Thomas Kyte tkyte_at_us.oracle.com Oracle Service Industries Reston, VA USA
Opinions are mine and do not necessarily reflect those of Oracle Corporation Received on Wed Oct 20 1999 - 08:12:30 CDT