mysql Delete Trigger 사용
오랜만에 mysql 트리거를 사용하여, 정리 1234567CREATE DEFINER = CURRENT_USER TRIGGER `트리거이름_AFTER_DELETE` AFTER DELETE ON `테이블명` FOR EACH ROWBEGIN INSERT INTO `user_mail_box_history`(`idx`, `user_key`, `mail_type`, `reward_type`, `item_type`, `item_count`, `sender_name`, `message`, `is_expire_type`, `expire_date`, `create_time`, `delete_time`) VALUES (old.`idx`, old.`user_key`, old.`mail_type`, old.`reward_typ..
2018. 5. 16.