CREATE TYPE SQL Statement (Distinct) | Teradata Vantage - CREATE TYPE (Distinct Form) - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Published
January 2021
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
ncd1596241368722.ditamap
dita:ditavalPath
hoy1596145193032.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™

Creates a user-defined type that is constructed directly from a predefined Vantage data type.

ANSI Compliance

This statement is ANSI SQL:2011 compliant, but includes non-ANSI Teradata extensions.

Other SQL dialects support similar non-ANSI standard statements with names such as the following:

  • CREATE DISTINCT TYPE

Required Privileges

You must have either the UDTTYPE or UDTMETHOD privilege on the SYSUDTLIB database to create a distinct UDT.

If the type definition includes a set of method signatures, then you must also have the UDTMETHOD privilege on the SYSUDTLIB database.

Privileges Granted Automatically

None.