MySQL Tutorial/Table/Temporary Table — различия между версиями

Материал из SQL эксперт
Перейти к: навигация, поиск
м (1 версия)
 
(нет различий)

Текущая версия на 12:49, 26 мая 2010

Temporary Tables

Temporary tables are fleeting in nature lasting only for the length of the MySQL session.

The syntax for creating temporary tables is:



   <source lang="sql">
CREATE TEMPORARY TABLE ( field definitions );</source>

Using a query to create the temporary table

   <source lang="sql">

CREATE TEMPORARY TABLE <newtable>

SELECT * FROM <oldtable></source>