Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Database Trigger
I am trying to write a database trigger that should fire on update of a
table
and when the new value in a column is not equal to 6.
CREATE or REPLACE TRIGGER trg_alt_his_update
AFTER INSERT or UPDATE on alt
FOR EACH ROW
BEGIN
insert into alt_his values(:new.id,:new.status,:new.not,:new.update_time,
:new.sub) ;
It doesn't with
insert into alt_his
values(:new.id,:new.status,:new.not,:new.update_time,i get compilation error.
:new.sub) WHEN :new.status NOT IN 6;
can anyone tell me how to get it work. Received on Wed Dec 13 2000 - 13:47:11 CST
![]() |
![]() |