src/core/framework/core/3rdparty/ezcomponents/Database/src/sqlabstraction/utilities.php
public function createTemporaryTable( $tableName, $tableDefinition )
    {
        $tableName = str_replace( '%', '', $tableName );
        $tableName = $this->getPrefixedTableNames($tableName);
        $this->db->exec( "CREATE TEMPORARY TABLE $tableName ($tableDefinition)" );
        return $tableName;
    }
public function createTemporaryTable( $tableName, $tableDefinition )
    {
        $tableName = str_replace( '%', '', $tableName );
        $tableName = $this->getPrefixedTableNames($tableName);
        $this->db->exec( "CREATE TEMPORARY TABLE $tableName ($tableDefinition)" );
        return $tableName;
    }
public function createTemporaryTable ( $ tableName , $ tableDefinition ) { $ tableName = str_replace ( '%' , '' , $ tableName ) ; $ tableName = $ this -> getPrefixedTableNames ( $ tableName ) ; $ this -> db -> exec ( "CREATE TEMPORARY TABLE $tableName ($tableDefinition)" ) ; return $ tableName ; }
Create temporary table.

Developers should use this method rather than creating temporary
tables by hand, executing the appropriate SQL queries.

If the specified table name contains percent character (%)
then it might be substituted with a unique number by some handlers.
For example, Oracle handler does this to guarantee uniqueness of
temporary tables names.
Handlers that do not need this just remove percent characters
from the table name.

Example of usage:
<code>
$actualTableName = $db->createTemporaryTable(
'my_tmp_%', 'field1 char(255), field2 int' );
$db->dropTemporaryTable( $actualTableName );
</code>

@see dropTemporaryTable()

@param   string $tableName       Name of temporary table user wants
to create.
@param   string $tableDefinition Definition for the table, i.e.
everything that goes between braces after
CREATE TEMPORARY TABLE clause.
@return string                  Table name, that might have been changed
by the handler to guarantee its uniqueness.
Create temporary table .