Table Function Parameter List | External Routine Programming | Teradata Vantage - Table Function Parameter List - Advanced SQL Engine - Teradata Database

SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-24
dita:mapPath
qwr1571437338192.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1147
lifecycle
previous
Product Category
Teradata Vantage™

The parameter list of a table function is similar to the parameter list of a scalar function. The main difference is that the table function parameter list can include multiple result parameters because a table function returns a row result instead of just one value.

A table function can have:
  • 128 input parameters
  • as many result parameters as defined by the RETURNS TABLE clause of the CREATE FUNCTION or REPLACE FUNCTION statement for the table function.

    The number of result parameters is limited by the maximum number of columns that can be defined for a regular table.

The data type of a result parameter in a table function cannot be TD_ANYTYPE.