Using Clauses with UDTs or UDFs | CREATE/REPLACE FUNCTION | Teradata Vantage - RETURNS Clause - 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™

This mandatory clause specifies the data type of the parameter value returned by the function. You can specify any valid data type except TD_ANYTYPE, VARIANT_TYPE and TABLE, including UDTs.

The defined return data type is stored as an entry in DBC.TVFields using the name RETURN0[n], where n is a sequentially defined integer used to guarantee the uniqueness of the value. This ensures that user-defined parameter names are not duplicated.