DROP TRIGGER IF EXISTS `trg_course`;
DELIMITER //
CREATE TRIGGER `trg_course` AFTER INSERT ON `esoftcar_centralserver`.`course`
FOR EACH ROW BEGIN
INSERT IGNORE INTO `course`(`C_Code`, `C_Name`, `C_Status`, `C_Type`, `Duration`, `C_Intake`, `C_Ins_Method`, `Branch`)
SELECT NEW.`C_Code`,
NEW.`C_Name`,
NEW.`C_Status`,
NEW.`C_Type`,
NEW.`Duration`,
NEW.`C_Intake`,
NEW.`C_Ins_Method`,
NEW.`Branch`
FROM `esoftcar_centralserver`.`course`;
END
//
DELIMITER ;