12 lines
307 B
MySQL
12 lines
307 B
MySQL
|
DELIMITER $$
|
||
|
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`claimRatio_afterUpdate`
|
||
|
AFTER UPDATE ON `claimRatio`
|
||
|
FOR EACH ROW
|
||
|
BEGIN
|
||
|
INSERT INTO clientRate(clientFk, `value`)
|
||
|
VALUES(NEW.clientFk, NEW.priceIncreasing)
|
||
|
ON DUPLICATE KEY UPDATE
|
||
|
`value` = VALUES(`value`);
|
||
|
END$$
|
||
|
DELIMITER ;
|