DELIMITER $$ CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`bankEntity_beforeUpdate` BEFORE UPDATE ON `bankEntity` FOR EACH ROW BEGIN IF NOT (NEW.bic <=> OLD.bic) THEN CALL bankEntity_checkBic(NEW.bic); END IF; END$$ DELIMITER ;