我可以在其他存储过程中捕获存储过程返回值吗?

时间:2018-01-04 11:39:18

标签: mysql stored-procedures

假设我有以下存储过程:

delimiter @@
create procedure test1(In n1 int, In n2 int)
begin
  select n1,n2
end @@

然后我想从其他存储过程中多次运行它:

delimiter @@
create procedure test2()
begin
  call test1(1,2);
  call test1(3,4);
end @@

假设test1已修复但我无法更改(运行或输出参数),如何在test1中获取test2的结果并阻止它返回每个test1 this对来电者的结果?

有可能吗?

我想要进行一百万次触发,结果正在减缓整个过程......

0 个答案:

没有答案
相关问题