DELETE DATABASE and Global Temporary or Volatile Tables - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Detailed Topics

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-24
dita:mapPath
jpx1556733107962.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1184
lifecycle
previous
Product Category
Teradata Vantage™

Rules for temporary and volatile tables are as follows:

IF a table is this type … THEN the following things occur when you delete a database …
global temporary
  • If you specify ALL, then all objects, including the materialized global temporary tables within the target database, are dropped.
  • If you do not specify ALL, the request aborts if there are any materialized global temporary tables; else all objects in the target database are dropped.
volatile All objects in the target database are dropped except volatile tables.