登 录
-- -------------------------- -- 在if里面不能重复使用临时表 -- Can't reopen table: 'tt' -- -------------------------- drop procedure if exists testP; delimiter | create procedure testP() begin drop temporary table if exists tt; create temporary table tt(id int); if (select count(*) from tt )=1 and (select id from tt limit 1) is null then set @a=1; end if; end| delimiter ; call testP(); -- -------------------------- -- 在一般SQL里面不能重复使用临时表 -- Can't reopen table: 't1' -- -------------------------- create temporary table t(x int); select * from t t1,t t2;
BUG信息 http://bugs.mysql.com/bug.php?id=10327
已经在2005年报告的,都3年快4年了,竟然还没有修复。
抱歉!评论已关闭.