16.20 - Scalar UDF - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Operators and User-Defined Functions

Product
Advanced SQL Engine
Teradata Database
Release Number
16.20
Release Date
April 2020
Content Type
Administration
Programming Reference
Publication ID
B035-1210-162K
Language
English (United States)

Purpose

Takes input arguments and returns a single value result.

Syntax



For UDFs that are defined with parameters of TD_ANYTYPE data type:



udf_name
The name of the scalar UDF.
argument
A valid SQL expression.
data_type
The desired return type of the TD_ANYTYPE result parameter.
column_expr
A table or a view column reference that determines the return type of the TD_ANYTYPE result parameter.