12 lines
311 B
SQL
12 lines
311 B
SQL
DELIMITER $$
|
|
CREATE OR REPLACE DEFINER=`vn-admin`@`localhost` TRIGGER `vn`.`claimRatio_afterInsert`
|
|
AFTER INSERT 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 ;
|