CREATE OR REPLACE TRIGGER DTULTATU_TRAB_APURAC_TU
BEFORE INSERT OR UPDATE
ON TRAB_APURAC_TU FOR EACH ROW

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

ALTER TABLE TRAB_APURAC_TU MODIFY DTULTATUAPURATU DEFAULT SYSDATE
/

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