Example: TD_ANYTYPE Input and Output Parameter Data Type - Teradata Vantage - Analytics Database

SQL Data Definition Language Syntax and Examples

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-11-06
dita:mapPath
jco1628111346878.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
mdr1472255012272
lifecycle
latest
Product Category
Teradata Vantage™

You create a function named udf_1. The following SQL text is a partial definition for udf_1.

     CREATE FUNCTION udf_1 (
       A INTEGER
       B TD_ANYTYPE)
       RETURNS TD_ANYTYPE
       SPECIFIC udf_1
       … ;

A HELP FUNCTION statement for udf_1 displays the following output, with ++ representing the TD_ANYTYPE parameter data type.

     HELP FUNCTION udf_1;

Result:

      *** Help information returned. 3 rows.
      *** Total elapsed time was 1 second.

Parameter Name                 Type Comment
------------------------------ ---- ------------------------------------
A                              I    ?
B                              ++   ?
RETURN0                        ++   ?