This Oracle tutorial explains how to use the Oracle LOCAL TEMPORARY TABLES with syntax and examples.
Oracle LOCAL TEMPORARY TABLES are distinct within modules and embedded SQL programs within Oracle sessions.
The syntax for Oracle DECLARE LOCAL TEMPORARY TABLE is:
The name of the local temporary table that you wish to create.
The columns that you wish to create in the local temporary table. Each column must have a datatype. The column should either be defined as NULL or NOT NULL and if this value is left blank, the database assumes NULL as the default.
Let's look at an Oracle DECLARE LOCAL TEMPORARY TABLE example:
This example would create a LOCAL TEMPORARY TABLE called suppliers_temp in Oracle.