16.20 - Similarities With The Syntax For CREATE TYPE (Distinct Form) - 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)

The syntax for CREATE TYPE (Structured Form) is similar to that for the CREATE TYPE (Distinct Form) statement.

The major distinguishing characteristics are the following:

  • The AS attribute_name list with an optional INSTANTIABLE specification.

    For CREATE TYPE (Distinct Form), the corresponding clause is the AS predefined_data_type clause.

  • The mandatory NOT FINAL specification.

    For CREATE TYPE (Distinct Form), the mandatory specification is FINAL.

  • The ability to create constructor method signatures, which you cannot do for distinct types.