Tuesday, July 24, 2012
AUTO LOG WITH TRIGGER
create
TRIGGER TRIG_MYTBL_LOG AFTER
UPDATE ON MYTBL FOR EACH ROW BEGIN
INSERT
INTO MYTBL_LOG
(
ITEM_CODE,
GTIN,
REGID,
REGIP,
REGDATE
)
VALUES
(
:OLD.ITEM_CODE,
:OLD.GTIN,
:OLD.REGID,
:OLD.REGIP,
:OLD.REGDATE
);
END;
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment