16.20 - Table Kind Clause - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2019-05-24
dita:mapPath
wkf1512081455740.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.ditaval

Duplicate row control.

If you do not specify SET or MULTISET, the default table kind depends on the session mode.

  • In ANSI session mode, the default table kind is MULTISET. Duplicate rows are allowed.
  • In Teradata session mode, the default table kind is SET. Duplicate rows are not allowed.
MULTISET
Duplicate rows are allowed.
If there are uniqueness constraints on any column or set of columns in the table definition, the table cannot have duplicate rows even if you specify MULTISET.
Some client utilities have restrictions with respect to MULTISET tables. See the CREATE TABLE (Table Kind Clause) topic “SET and MULTISET” in Teradata Vantage™ SQL Data Definition Language Detailed Topics , B035-1184 .
SET
Duplicate rows are not allowed.
If the only column in the table is its QITS column, then you cannot specify SET. In this case, the table must be defined, either implicitly or explicitly, as MULTISET. See QITS_column_name.