DROP TABLE and Error 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™

You cannot drop an error table using the DROP TABLE statement. You must use DROP ERROR TABLE.

To drop a data table has an error table associated with it, you must first drop its error table.

You must drop the error table in a separate DROP ERROR TABLE request. See “DROP ERROR TABLE” in Teradata Vantage™ - SQL Data Definition Language Syntax and Examples, B035-1144.

The system adds a row to the DBC.ErrorTbls system table only when you create an error table, so you do not need to delete any rows from DBC.ErrorTbls when you drop its associated data table.

The DBC.ErrorTblsV or DBC.ErrorTblsVX views displays Dropped Database, Dropped Table, or Dropped User, respectively, in place of the dropped database, data table, or error table creator name. See Teradata Vantage™ - Data Dictionary, B035-1092.