Problemas com TEMPORARY TABLE
Segue uma lista de limitações com TEMPORARY TABLES
.
- Uma tabela temporária só pode ser do tipo
HEAP
,ISAM
,MyISAM
,MERGE
, ouInnoDB
. - Você não pode usar tabelas temporárias mais que uma vez na mesma consulta. Por exemplo, o seguinte não funciona.
mysql>
SELECT * FROM tabela_temporária, tabela_temporária AS t2;
- Você não pode usar
RENAME
em uma tabela temporária (TEMPORARY
). Note queALTER TABLE nome_orig RENAME nome_novo
funciona!
This is a translation of the MariaDB Reference Manual that can be found at dev.mysql.com. The original Reference Manual is in English, and this translation is not necessarily as up to date as the English version.