CREATE ERROR TABLE Examples | Teradata Vantage - CREATE ERROR TABLE Examples - Teradata Vantage - Analytics Database

SQL Data Definition Language Syntax and Examples

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
2025-11-22
dita:mapPath
jco1628111346878.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
mdr1472255012272
lifecycle
latest
Product Category
Teradata Vantage™

Example: Creating a Named Error Table

The following example creates an error table named e for data table t.

     CREATE ERROR TABLE e FOR t;

Example: Creating an Error Table for a Row-Level Security Table

The following example creates an error table named err_table_1 for the row-level security constraint-protected data table named table_1_RLS_constraints, but does not generate any row-level security columns for the error table because the request specifies the NO RLS option.

     CREATE ERROR TABLE err_table_1 FOR table_1_RLS_constraints 
       NO RLS;
database_name
user_name
Name of the database or user in which the data table is contained if not in the current database or user.

Example: Creating an Error Table with a Default Name

The following example creates an error table with a default name of et_t for data table t.

     CREATE ERROR TABLE FOR t;