Similarities With The Syntax For CREATE TYPE (Distinct Form) - Analytics Database - Teradata Vantage

SQL Data Definition Language Detailed Topics

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2024-12-13
dita:mapPath
vuk1628111288877.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
jbg1472252759029
lifecycle
latest
Product Category
Teradata Vantage™

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.