DELETE DATABASE and Global Temporary or Volatile Tables - Teradata Vantage - Analytics Database

SQL Data Definition Language Detailed Topics

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
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™

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.