15.10 - Appendix A SQL Data Type Codes - Preprocessor2 for Embedded SQL

Teradata Preprocessor2 for Embedded SQL Programmer Guide

prodname
Preprocessor2 for Embedded SQL
vrm_release
15.10
category
Programming Reference
featnum
B035-2446-035K

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)