Mysql
 sql >> Database >  >> RDS >> Mysql

Come creare una tabella TEMPORARY in laravel

Prova questo

// CREA TABELLA TEMPORANEA

$productList = DB::insert( DB::raw( "CREATE TEMPORARY TABLE tempproducts") );

// CANCELLA TABELLA TEMPORANEA

$dropTable = DB::unprepared( DB::raw( "DROP TEMPORARY TABLE tempproducts" ) );