9 lines
231 B
MySQL
9 lines
231 B
MySQL
|
DELIMITER $$
|
||
|
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`workerIncome_afterInsert`
|
||
|
AFTER INSERT ON `workerIncome`
|
||
|
FOR EACH ROW
|
||
|
BEGIN
|
||
|
CALL worker_updateBalance(NEW.workerFk,NEW.credit,NEW.debit);
|
||
|
END$$
|
||
|
DELIMITER ;
|