CREATE OR REPLACE TRIGGER DTULTATU_CFOPTEMP
BEFORE INSERT OR UPDATE
ON CFOPTEMP FOR EACH ROW

BEGIN
   IF INSERTING THEN
      :NEW.DTULTATUCFOPTMP := SYSDATE;
   END IF;
   IF UPDATING THEN
      :NEW.DTULTATUCFOPTMP := SYSDATE;
   END IF;
END;
/

ALTER TABLE CFOPTEMP MODIFY DTULTATUCFOPTMP DEFAULT SYSDATE
/

-- VERSAO --
BEGIN ATUVEROBJ('SQLWEBTUNNING','5.03.009'); END;
/
