Hi I am working with Temporary table and I would like to know the temporary table storage Engine (InnoDB, MyISAM .... )
I am using the following code to find out bu
Unfortunately:
Currently, the [INFORMATION_SCHEMA.]TABLES table does not list TEMPORARY tables.
I would advise parsing the result of SHOW CREATE TABLE temporary_table;
To extract only the ENGINE of this return value:
$rset = mysql_query('SHOW CREATE TABLE temporary_table;')
$row = mysql_fetch_array($rset, MYSQL_BOTH);
preg_match('/ENGINE\=(?P\w+)/', $row[1], $matches);
echo $matches['engine'];