DELIMITER $$ CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `vn`.`workerManaExcluded_beforeUpdate` BEFORE UPDATE ON `workerManaExcluded` FOR EACH ROW BEGIN DELETE FROM workerMana WHERE workerFk = NEW.workerFk; END$$ DELIMITER ;