NEW Function | UDT Expression Method | Teradata Vantage - 17.10 - NEW - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Operators and User-Defined Functions

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Administration
Programming Reference
Publication ID
B035-1210-171K
Language
English (United States)

Constructs a new instance of a structured type and initializes it using the specified constructor method or function.

ANSI Compliance

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

The requirement that parentheses appear when the argument list is empty is a Teradata extension to preserve compatibility with existing applications.

Syntax

[ NEW [SYSUDTLIB.] ] constructor_name ( [ argument [,...]] )

Syntax Elements

SYSUDTLIB.
Name of the database where the function is located.
constructor_name
The name of a distinct or structured UDT column.
argument

An argument to pass to the constructor.

Parentheses must appear even though the argument list may be empty.