DELIMITER //
CREATE TRIGGER REQBBSMT_TRIGGER_01 AFTER UPDATE
ON REQBBSMT FOR EACH ROW
BEGIN
INSERT INTO REQBBSMT_HIS (OLD_SEQNUM, OLD_CATECD, OLD_ORDDAT, OLD_USERID, OLD_USERNM
, OLD_TELNUM, OLD_EMAIL,  OLD_MENUNM, OLD_TITLE, OLD_CONTENT
, OLD_FPATH1, OLD_FNAME1, OLD_FPATH2, OLD_FNAME2, OLD_FPATH3
, OLD_FNAME3, OLD_GBNCHK, OLD_REGTYP, OLD_MAINID, OLD_COMENT
, OLD_COMCHK, OLD_NOWCHK, OLD_ENDDT1, OLD_ENDDT2, OLD_DELCHK
, OLD_ENTDAT, OLD_ENTEID, OLD_EDTDAT, OLD_EDITID, OLD_EDITIP
, OLD_REQTYP, OLD_MENUGB, OLD_NOWSEQ, OLD_REQTXT
, NEW_SEQNUM, NEW_CATECD, NEW_ORDDAT, NEW_USERID, NEW_USERNM
, NEW_TELNUM, NEW_EMAIL,  NEW_MENUNM, NEW_TITLE,  NEW_CONTENT
, NEW_FPATH1, NEW_FNAME1, NEW_FPATH2, NEW_FNAME2, NEW_FPATH3
, NEW_FNAME3, NEW_GBNCHK, NEW_REGTYP, NEW_MAINID, NEW_COMENT
, NEW_COMCHK, NEW_NOWCHK, NEW_ENDDT1, NEW_ENDDT2, NEW_DELCHK
, NEW_ENTDAT, NEW_ENTEID, NEW_EDTDAT, NEW_EDITID, NEW_EDITIP
, NEW_REQTYP, NEW_MENUGB, NEW_NOWSEQ, NEW_REQTXT
) VALUES ( OLD.SEQNUM, OLD.CATECD, OLD.ORDDAT, OLD.USERID, OLD.USERNM
, OLD.TELNUM, OLD.EMAIL,  OLD.MENUNM, OLD.TITLE, OLD.CONTENT
, OLD.FPATH1, OLD.FNAME1, OLD.FPATH2, OLD.FNAME2, OLD.FPATH3
, OLD.FNAME3, OLD.GBNCHK, OLD.REGTYP, OLD.MAINID, OLD.COMENT
, OLD.COMCHK, OLD.NOWCHK, OLD.ENDDT1, OLD.ENDDT2, OLD.DELCHK
, OLD.ENTDAT, OLD.ENTEID, OLD.EDTDAT, OLD.EDITID, OLD.EDITIP
, OLD.REQTYP, OLD.MENUGB, OLD.NOWSEQ, OLD.REQTXT
, NEW.SEQNUM, NEW.CATECD, NEW.ORDDAT, NEW.USERID, NEW.USERNM
, NEW.TELNUM, NEW.EMAIL,  NEW.MENUNM, NEW.TITLE,  NEW.CONTENT
, NEW.FPATH1, NEW.FNAME1, NEW.FPATH2, NEW.FNAME2, NEW.FPATH3
, NEW.FNAME3, NEW.GBNCHK, NEW.REGTYP, NEW.MAINID, NEW.COMENT
, NEW.COMCHK, NEW.NOWCHK, NEW.ENDDT1, NEW.ENDDT2, NEW.DELCHK
, NEW.ENTDAT, NEW.ENTEID, NEW.EDTDAT, NEW.EDITID, NEW.EDITIP
, NEW.REQTYP, NEW.MENUGB, NEW.NOWSEQ, NEW.REQTXT);
END
//