编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
Mysql参考手册

A.7.3. TEMPORARY TABLE问题

下面介绍了对使用TEMPORARY表的限制:

  • TEMPORARY表只能是HEAP、ISAM、MyISAM、MERGE、或InnoDB类型。
  • 在相同的查询中,不能引用TEMPORARY表1次以上。例如,下例不能正常工作:
mysql> SELECT * FROM temp_table, temp_table AS t2;
错误1137:不能再次打开表:'temp_table'
  • SHOW TABLES语句不会列出TEMPORARY表。
  • 不能使用RENAME重命名TEMPORARY表。但能使用ALTER TABLE取而代之:
mysql> ALTER TABLE orig_name RENAME new_name;
相关文章
mysql解决错误the total number of locks exceeds the lock table sizemysql 与alter table有关的问题mysql alter table语法mysql delete tablemysql drop table语法mysql rename table语法mysql information schema table privileges表mysql temporary table问题php cubrid mysql 兼容性函数 return the name of the table of the specified fieldphp mysql xdevapi columnresult get table labelphp mysql xdevapi columnresult get table namephp mysql xdevapi schema get collection table objectphp mysql xdevapi table get table namephp mysql xdevapi table get table schemaphp mysql xdevapi table get table sessionphp mysql xdevapi table insert table rowsphp mysql xdevapi table check if table is viewphp mysql xdevapi table select rows from tablephp mysql xdevapi table update rows in tablephp mysqlnduhconnection list mysql table fields
关注编程学问公众号
编程学问网 湘ICP备20001732号