有两个存储过程分别是 a_proc(),b_proc(),他们调用运行正常。创建c_proc,根据以下逻辑调用:
if x=1 then
call a_proc();
elseif x=2 then
call b_proc();
elseif x=3 then
call a_proc();
call b_proc();
end if;
现在的问题是当x=3时,只有call a_proc();调用了,然后就end if; 这是为何?
有两个存储过程分别是 a_proc(),b_proc(),他们调用运行正常。创建c_proc,根据以下逻辑调用:
if x=1 then
call a_proc();
elseif x=2 then
call b_proc();
elseif x=3 then
call a_proc();
call b_proc();
end if;
现在的问题是当x=3时,只有call a_proc();调用了,然后就end if; 这是为何?
12 回答7.2k 阅读✓ 已解决
4 回答1.3k 阅读✓ 已解决
3 回答831 阅读✓ 已解决
4 回答1.1k 阅读
2 回答658 阅读✓ 已解决
4 回答882 阅读✓ 已解决
3 回答1.3k 阅读