17.05 - Example: TD_ANYTYPE Input and Output Parameter Data Type - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Advanced SQL Engine
Teradata Database
Release Number
Release Date
January 2021
Content Type
Programming Reference
Publication ID
English (United States)

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)
       SPECIFIC udf_1
       … ;

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

     HELP FUNCTION udf_1;
      *** Help information returned. 3 rows.
      *** Total elapsed time was 1 second.

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