Are tables created with “CREATE TEMPORARY TABLE” in memory or on disk?
In MySQL , when you create a temporary table, for example, CREATE TEMPORARY TABLE ... , is that table created and held in memory or on the disk? I have read through the docs and Google'd it and have not come up with an answer. It depends on what engine you specify. By default the table data will be stored on disk. If you specify the MEMORY engine, the data will only be stored in memory. It should be possible to actually find the files that are created in the filesystem when the temporary tables are created. After running the following commands: CREATE TABLE test.table_myisam (x int) ENGINE