Importing and Exporting Values into a UDT Column - Teradata Preprocessor2

Teradata® Preprocessor2 for Embedded SQL Programmer Guide

Product
Teradata Preprocessor2
Release Number
17.00
Published
June 2020
Language
English (United States)
Last Update
2020-06-19
dita:mapPath
whb1544831946911.ditamap
dita:ditavalPath
obe1474387269547.ditaval
dita:id
B035-2446
lifecycle
previous
Product Category
Teradata Tools and Utilities

PP2-based application programs can import and export values into tables that contain UDT columns. Write the embedded SQL host program as if the columns containing the UDTs contained the external types associated with the UDTs.

When the generated application program is run, it inserts values into the UDT columns. Then the database converts the UDT data from the external type to UDT internal format.

Define host variables to receive the UDT values using types that are compatible to the external types associated with the UDTs. When the select-list of a SELECT statement contains a UDT expression, the database automatically converts the UDT data to its external type before returning the data to the client system. PP2 converts the data from this external type to the appropriate client format, provided the types are compatible.