:: DEVELOPER ZONE
The following list indicates limitations on the use of
TEMPORARY tables:
A TEMPORARY table can only be of type
HEAP, ISAM,
MyISAM, MERGE, or
InnoDB.
You cannot refer to a TEMPORARY table more than
once in the same query. For example, the following does not work:
mysql> SELECT * FROM temp_table, temp_table AS t2; ERROR 1137: Can't reopen table: 'temp_table'
The SHOW TABLES statement does not list
TEMPORARY tables.
You cannot use RENAME to rename a
TEMPORARY table. However, you can use
ALTER TABLE instead:
mysql> ALTER TABLE orig_name RENAME new_name;
© 1995-2005 MySQL AB. All rights reserved.

User Comments
Warning: query failed: Unknown column 'user.firstname' in 'field list' in /data0/sites/live/web-main/lib/mysql-cxn.php on line 69
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /data0/sites/live/web-main/lib/docbook.php on line 245
Add your own comment.