Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: create assertion?
You need a ; after each statement, i.e. it should be:
update orders set duedate = (select sysdate from dual);
-- Terry Dykstra Canadian Forest Oil Ltd. "eugene kim" <eugene1977_at_hotmail.com> wrote in message news:alc6sv$2uq$1_at_newsreader.mailgate.org...Received on Thu Sep 12 2002 - 16:48:46 CDT
> got one more question..
> ... is anything wrong with my trigger?
>
>
> create trigger set_duedate after insert on orders
> for each row
> begin
> update orders set duedate = (select sysdate from dual)
> end set_duedate;
>
> -------------
> Warning: Trigger created with compilation errors.
> -------------
> ORA-04098: trigger 'EUGENE.SET_DUEDATE' is invalid and failed
re-validation
>
>