×
Home About Us Products Services News Free Scripts Contact
news php scripts and software

Databases example - How to create and use temporary tables in MySQL?


Databases - How to create and use temporary tables in MySQL?

The temporary tables could be very useful in some cases to keep temporary data. 

The most important thing that should be know for temporary tables is that they will be deleted when the current client disconnects.

You could try to create such a temporary table

CREATE TEMPORARY TABLE MyTemporaryTable SELECT * FROM MyRealTable WHERE id<10;

Category: Databases

 
<< Go back