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

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Release Date
September 2020
Content Type
Programming Reference
Publication ID
B035-1144-170K
Language
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)
       RETURNS 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                        ++   ?