I want to have the following 3 triggers:
#START TRIGGER
delimiter $$
CREATE TRIGGER `lastedited` AFTER UPDATE ON `eng-jap`
FOR EACH ROW
BEGIN
UPDATE `mrhowtos_main`.`eng`
SET `english` = new.eng WHERE `english` = old.eng;
UPDATE `mrhowtos_main`.`jap`
SET `japanese` = new.jap WHERE `japanese` = old.jap;
END;
$$
#START TRIGGER
delimiter $$
CREATE TRIGGER `lastedited2` AFTER UPDATE ON `eng`
FOR EACH ROW
BEGIN
UPDATE `mrhowtos_main`.`eng-jap`
SET `eng-jap`.`eng` = new.english WHERE `eng-jap`.`eng` = old.english;
END;
$$
#START TRIGGER
delimiter $$
CREATE TRIGGER `lastedited3` AFTER UPDATE ON `jap`
FOR EACH ROW
BEGIN
UPDATE `mrhowtos_main`.`eng-jap`
SET `eng-jap`.`jap` = new.japanese WHERE `eng-jap`.`jap` = old.japanese;
END;
$$
but before i even create them i see that there will be this infinite looping of the triggers as soon as any of the tables get updated. Basically i do not want the triggers UPDATE to "trigger" the other triggers. How do I do that?