Method Signatures - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Detailed Topics

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
imq1591724555718.ditamap
dita:ditavalPath
imq1591724555718.ditaval
dita:id
B035-1184
lifecycle
previous
Product Category
Teradata Vantage™

The signature of an instance or constructor method is the partial definition that you must provide when you create a UDT (see CREATE TYPE (Distinct Form) and CREATE TYPE (Structured Form)) or add an instance or constructor method to the UDT definition (see ALTER TYPE).

The method signature specified for a UDT definition does not completely define an instance or constructor method; however it does canonically define the following aspects of an instance or constructor method:

The method signature also defines, possibly redundantly, the data type it returns. Note that the RETURNS clause is mandatory for the method signature, but optional within the clauses included within CREATE METHOD. The definitions must be identical if both are specified.

A method signature must redundantly and identically specify the following list of items from its associated method body.
  • Its method name.
  • Its parameter list.
  • The CONSTRUCTOR keyword if it is so defined in the method body of its associated CREATE METHOD statement.

    You do not need to specify the INSTANCE keyword if its associated CREATE METHOD statement explicitly defines it as such because if no keyword is specified for a method, it is always assumed to be an instance method by default.

You must always create the method body using the CREATE METHOD statement.