我收到错误不允许从触发器返回结果集
;我正在使用 MySQL。
下面是我的触发代码:
delimiter |
create trigger order_val after insert on tbl_order
for each row begin
call value(new.od_id,@e);
insert into od_val (od_id,od_val) values(new.od_id,@e);
end;
|
最佳答案
当我在触发器中使用 select 语句时,我遇到了同样的问题......后来删除了它 & 它现在工作正常..
过程(call value(new.od_id,@e))中是否有select语句...
关于mysql - 错误 "Not allowed to return a result set from a trigger",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10111358/