Data type constants
The
Informix® ESQL/C sqltypes.h header
file contains integer constants for both SQL and Informix®
ESQL/C data
types. Some Informix®
ESQL/C library
functions require data type constants as arguments. You can also compare
these data type constants in dynamic SQL programs to determine the
type of column that the DESCRIBE statement described. The Informix®
ESQL/C code
excerpt in the following figure compares the sqltype element
of an sqlvar structure to a series of SQL data type constants
to determine what types of columns a DESCRIBE statement returned.
For more information about the use of data type constants with the DESCRIBE statement, see Determine SQL statements.