A simple solution is to duplicate the temporary table. Works well if the table is relatively small, which is often the case with temporary tables.
More Related Contents:
- Create a temporary table in a SELECT statement without a separate CREATE TABLE
- How can I simulate an array variable in MySQL?
- Is MySQL Temporary table a shared resource?
- i have an error which i dont understand. can you help me? [closed]
- MySQL select 10 random rows from 600K rows fast
- How do you use the “WITH” clause in MySQL?
- mysql error 1364 Field doesn’t have a default values
- SQL: What is the default Order By of queries?
- MySQL Split Comma Separated String Into Temp Table
- How to group by week in MySQL?
- Can I use a function for a default value in MySql?
- Access Denied for User ‘root’@’localhost’ (using password: YES) – No Privileges?
- Mysql order by specific ID values
- How do I check if a column is empty or null in MySQL?
- MySQL versus PDO [duplicate]
- Mysql string split [duplicate]
- Increment a database field by 1
- Measuring actual MySQL query time
- Am I Using JDBC Connection Pooling?
- MySQL VARCHAR Lengths and UTF-8
- mysql transaction – roll back on any exception
- Use a trigger to stop an insert or update
- mysql query show multiple tables from one ID column
- MySQL: ALTER IGNORE TABLE gives “Integrity constraint violation”
- How do I refer to capture groups in a MySQL regex?
- What is the default MySQL JOIN behaviour, INNER or OUTER?
- How to get the mysql table columns data type?
- Escaping the colon character ‘:’ in JPA queries
- How to export / dump a MySql table into a text file including the field names (aka headers or column names)
- WHERE datetime older than some time (eg. 15 minutes)