Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Create trigger script
Hi,
Does anyone know the address with sql scripts samples?
I have trigger which I want to set for about 90 tables, its is like this :
typ INTEGER; UsrId INTEGER; ---------------------------------
IF updating THEN typ := 1; END IF; IF deleting THEN typ := 2; END IF; IF inserting THEN typ := 3; END IF;
VPW_P_InsertDelInLogFile (:OLD.ID,UsrId); ELSE
VPW_P_InsertUpdtInLogFile (:NEW.ID,UsrId,Typ,'ART_ID' ,:OLD.ART_ID
but the procedure VPW_P_InsertUpdtInLogFile in update and insert part should be started for each field in table.
I am sure that there is a method to create the trgers script automaticly.
I hope you can help me with it.
Thanks,
Marcin
Received on Thu Nov 11 1999 - 08:12:02 CST