This Oracle tutorial explains how to use the Oracle GLOBAL TEMPORARY TABLES with syntax and examples.
GLOBAL TEMPORARY TABLES in Oracle are tables that are created distinct within the Oracle sessions.
The syntax for Oracle CREATE GLOBAL TEMPORARY TABLE is:
The name of the global temporary table that you wish to create.
The columns that you wish to create in the global 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 CREATE GLOBAL TEMPORARY TABLE example:
This example would create a GLOBAL TEMPORARY TABLE called suppliers.