salix/db/routines/vn/triggers/bankEntity_beforeUpdate.sql

11 lines
247 B
MySQL
Raw Normal View History

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 ;