A temporary table is a temporary variable that holds a table. A temporary table is used as a buffer or intermediate storage for table data.
You can use a temporary table just like you use a database table. The differences between a temporary table and a database table are as follows:
A temporary table data isn’t stored in the database. It’s only held in memory until the table is closed.
The write transaction principle that applies to a database table doesn’t apply to a temporary table.