Overview of the SQL Data Type Codes| Preprocessor2 for Embedded SQL (PP2) - Overview - 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 uses data type codes for input and output SQL Descriptor Area (SQLDA) structures generated by the precompiler and recognized at execution. The database returns data type code values to the SQLDA specified by the application using a PREPARE or DESCRIBE statement. The data type is in the two byte SQLTYPE integer field of the SQLDA.

Use the following guidelines in interpreting the tables in the next sections:

Code Requirements for Variable
Even-numbered Cannot be null (no indicator variables are allowed)
Odd-numbered Can be null (indicator variables are allowed)