16.20 - Example: TD_ANYTYPE Input and Output Parameter Data Type - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2019-05-24
dita:mapPath
wkf1512081455740.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.ditaval

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                        ++   ?