CREATE OR REPLACE TRIGGER DTULTATU_MOVILOTE
BEFORE INSERT OR UPDATE
ON MOVILOTE FOR EACH ROW

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

ALTER TABLE MOVILOTE MODIFY DTULTATUMOVLOTE DEFAULT SYSDATE
/

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