Importing and Exporting Values into a UDT Column - Teradata Preprocessor2

Teradata® Preprocessor2 for Embedded SQL Programmer Guide - 20.00

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
Teradata Preprocessor2
Release Number
20.00
Published
October 2023
ft:locale
en-US
ft:lastEdition
2023-11-20
dita:mapPath
nyr1691484085721.ditamap
dita:ditavalPath
obe1474387269547.ditaval
dita:id
xfi1470440464166
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.