Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Trigger Help
I would like to return the value of a field back to 0 once the value reaches
1000 using a trigger
I have the following:
if (:new.senumber=1000) then
begin update mytable set senumber=0 where mycondition=mycondition end;
The trigger will be executed on an update of the senumber column.
Any help would be greatly appreciated.
mark_a_young_at_worldnet.att.net Received on Thu Jul 22 1999 - 14:35:43 CDT
![]() |
![]() |