11 lines
247 B
MySQL
11 lines
247 B
MySQL
|
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 ;
|