📅  最后修改于: 2022-03-11 15:05:34.705000             🧑  作者: Mango
delimiter //
CREATE TRIGGER before_insert_money BEFORE INSERT ON money
FOR EACH
ROW
BEGIN
UPDATE accounts SET balance=10.0;
END;
//
delimiter ;