CREATE OR REPLACE TRIGGER DTULTATU_TRAB_APURAC_EQ
BEFORE INSERT OR UPDATE
ON TRAB_APURAC_EQ FOR EACH ROW

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

ALTER TABLE TRAB_APURAC_EQ MODIFY DTULTATUAPURAEQ DEFAULT SYSDATE
/

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