Temporary Tables : Temporary Table : Table MySQL TUTORIALS


MySQL TUTORIALS » Table » Temporary Table »

 

Temporary Tables


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

The syntax for creating temporary tables is:

CREATE TEMPORARY TABLE <table> (
      field definitions
 );
mysql>
mysql> CREATE TEMPORARY TABLE temp (
    ->      id int
    -> );
Query OK, rows affected (0.00 sec)

mysql>
mysql> show tables;
Empty set (0.00 sec)

mysql>
mysql> drop TEMPORARY TABLE temp;
Query OK, rows affected (0.00 sec)



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Table
» Temporary Table