delimiter #
create trigger update_recharge_due_onrenewal after insert on recharge
for each row set
begin
update due_amount SET due_amount.amount=due_amount.amount-(select rate from
internet_package where recharge.package_id = internet_package.package_id)
where
due_advance.user_id = recharge.user_id;
end;#
为什么显示错误-未知的系统变量'开始'
最佳答案
将for each row set
更改为for each row
。