Support for Global Temporary, Global Temporary Trace, and Volatile Tables - Analytics Database - Teradata Vantage

SQL Data Definition Language Detailed Topics

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2024-12-13
dita:mapPath
vuk1628111288877.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
jbg1472252759029
lifecycle
latest
Product Category
Teradata Vantage™

You can reference global temporary, global temporary trace, and volatile tables in a view.

When you access a view that involves a global temporary, global temporary trace, or volatile table, then all references to that table are mapped to the corresponding global temporary, global temporary trace, or volatile table within the current session.

When an application performs an INSERT request that inserts rows to a global temporary table through a view, and that table is not materialized in the current session, then an instance of the table is created when the INSERT request performs. You cannot insert rows into a global temporary trace table through a view.

If an INSERT request is issued against a volatile table, all references to volatile tables are mapped to the volatile tables with those names in the current session. If a volatile table referenced in the view has been dropped from the session prior to the time the view performs, then the system returns an error to the requestor.