我在Mysql
中编写了两个存储过程
1.business logic(SP1),
2.dynamic temporary table creation(SP2)
in Sp2 am creating temp table
in sp1 am inserting values..
am calling SP2 in SP1..
如果我从控制台应用程序调用SP1
,它工作正常,但是..
如果我在Web应用程序
中调用相同的存储过程SP1
,它会抛出一个异常
,例如临时表不存在
..
why its happen like this ???
any suggestions ?? tell me the reason..
提前致谢..
最佳答案
当您从 sp1 调用临时表时,它超出了范围。它只存在于sp2内
关于mysql - mysql存储过程中不存在临时表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23794882/