BEGINIF new.status = 1 and old.status <> 1 thenupdate hb_user_balance_log set create_time = new.pay_time where user_id = new.uid and type = 8 and create_time = old.create_time;END IF;END
mysql触发器
原文:https://www.cnblogs.com/keketoloveme/p/14441574.html