Appendix A SQL Data Type Codes - Preprocessor2 for Embedded SQL

Teradata Preprocessor2 for Embedded SQL Programmer Guide

Product
Preprocessor2 for Embedded SQL
Release Number
15.00
Language
English (United States)
Last Update
2018-09-27
dita:id
B035-2446
lifecycle
previous
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 Teradata 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)