这篇文章主要为大家详细介绍了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;
代码如下:
mysql> SELECT * FROM temp_table, temp_table AS t2;
ERROR 1137: Can't reopen table: 'temp_table'
代码如下:
mysql>ALTER TABLE orig_name RENAME new_name;
代码如下:
DROP TEMPORARY TABLE IF EXISTS sp_output_tmp;
本文来自:http://www.q1010.com/177/10117-0.html
注:关于MySQL 临时表 cann't reopen解决方案的内容就先介绍到这里,更多相关文章的可以留意四海网的其他信息。
关键词:MYSQL
四海网收集整理一些常用的php代码,JS代码,数据库mysql等技术文章。