mysql 临时表 cann’t reopen解决方案
当你创建临时表的时候,你可以使用temporary关键字。如: 代码如下: create temporary table tmp_table(name varchar(10) not null,passwd char(6) not null); 或 代码如下: create temporary table if not exists sp_output_tmp engine= memory select ...from ... where ID=current_id; 临时表只在当前连接可见,当这个连接关闭的时候,会自动drop。这就意味着你可以在两个不同的连接里使用相同的临时表名,并且相互不
下载地址
用户评论