16.20 - Target Table Kind Defaults - 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)

If the source is a base table and you do not specify an explicit table kind, the table kind of the target table defaults to the source table kind.

Note that if you use the abbreviated CT … AS syntax, you cannot specify a table kind. Because of this, the system automatically copies the table kind of the source table to the target table when you use the CT … AS syntax.

If the source is a subquery, the system creates the target table using the default table kind for the session mode unless you specify an explicit table kind in the CREATE TABLE statement, as indicated in the following table.

IF you copy to a target table using a subquery while in this session mode … THEN the target table has this table kind unless you explicitly specify something different …
ANSI MULTISET
Teradata SET

For example, if you copy a definition to a target table in ANSI session mode using a subquery, then the table kind of the target table defaults to MULTISET unless you explicitly specify the SET table kind in your CREATE TABLE … AS … statement.