Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Trigger problem ADO to ORACLE 8
Thanks for your response. Yes, I am actually updating the row with the
timestamp. How would my code need to change to use the method you
suggest? I don't understand why for the owner "ADM" this works and any
other user doesn't work. Thanks again,
Sean
Here is the trigger code:
CREATE OR REPLACE TRIGGER "ADM"."LASTMOD" BEFORE
UPDATE OF "SCHED_FRI", "SCHED_MON", "SCHED_SAT", "SCHED_SUN",
"SCHED_THU", "SCHED_TUE", "SCHED_WED" ON "ADM"."DDATA" FOR EACH ROW
begin
If (:new.SCHED_MON is not null) then
If (:old.SCHED_MON is null) then
SELECT sysdate INTO :new.SCH_LAST_MOD from dual;
Else
If (:new.SCHED_MON <> :old.SCHED_MON) then SELECT sysdate INTO :new.SCH_LAST_MOD from dual; End if;