16.20 - Example: Methods That Return a TD_ANYTYPE or INTEGER 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

Method td_anytyp_x1 takes a TD_ANYTYPE parameter and returns an INTEGER.

     CREATE METHOD td_anytyp_x1 (p1 TD_ANYTYPE)
     RETURNS INTEGER
     FOR myUDT
     EXTERNAL NAME 'CS!td_anytyp_x1!td_anytyp_x1.c!F!td_anytyp_x1';

Method td_anytpe_x2 takes a TD_ANYTYPE parameter and returns a TD_ANYTYPE.

     CREATE METHOD td_anytpe_x2(p1 TD_ANYTYPE)
     RETURNS TD_ANYTYPE
     FOR myUDT
     EXTERNAL NAME 'CS!td_anytpe_x2!td_anytpe_x2.c!F!td_anytpe_x2';