16.10 - Using a Dynamic UDT - Teradata Database

Teradata Database SQL Fundamentals

Product
Teradata Database
Release Number
16.10
Published
June 2017
Language
English (United States)
Last Update
2018-04-25
dita:mapPath
klx1480972732157.ditamap
dita:ditavalPath
changebar_rev_16_10_exclude_audience_ie.ditaval
Follow these steps to use a dynamic UDT as the data type of an input parameter to an external UDF:
  1. In the CREATE FUNCTION or REPLACE FUNCTION statement for the UDF, specify the data type of up to eight input parameters as VARIANT_TYPE.
  2. Write, test, and debug the C or C++ source code for the UDF.
  3. Call the UDF, using the NEW VARIANT_TYPE expression to construct instances of dynamic UDT arguments and define up to 128 attributes for each UDT.