簡體   English   中英

臨時表在mysql存儲過程中不存在

[英]temporary table does not exist in mysql stored procedure

我在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 application same stored procedure SP1調用same stored procedure SP1 ,則拋出諸如temporary table not exist類的Exception temporary table not exist ..

why its happen like this ???
any suggestions ?? tell me the reason..

提前致謝..

從sp1調用臨時表時,該表不在范圍內。 它僅存在於sp2中

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM