shlogg · Early preview
Pranav Bakare @mrcaption49

Oracle Global Temporary Table (GTT) Tutorial And Examples

Temporary tables in Oracle SQL allow storing data for session or transaction duration, persisting structure but not data. Data is accessible only to inserting session and can be deleted at commit or preserved until session ends.

Global Temporary Table (GTT) in Oracle SQL

Definition: A Global Temporary Table (GTT) is a type of table in Oracle that stores data temporarily for the duration of a session or a transaction. The structure of the table is persistent, but the data contained within it is transient and can be session-specific or transaction-specific.


  
  
  Characteristics of Global Temporary Tables:

The table structure (columns and data types) is defined just like a regular table.

Data is only accessible to the session that inserted it.
Data can either persist for the duration of the session or until the e...