CREATE OR REPLACE TRIGGER DTULTATU_CSTTEMP
BEFORE INSERT OR UPDATE
ON CSTTEMP FOR EACH ROW

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

ALTER TABLE CSTTEMP MODIFY DTULTATUCSTTMP DEFAULT SYSDATE
/

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