16.20 - DROP TABLE and Error Tables - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Detailed Topics

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Release Date
March 2019
Content Type
Programming Reference
Publication ID
B035-1184-162K
Language
English (United States)

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.