Fri, 17 May 2024


How to create and use temporary tables in MySQL?

By: Nathalie, NetArt Media
Fri, 8 October 2021

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
Share this post:



See All Scripts






Subscribe for our newsletter

Receive the latest blog posts direct in your mailbox