Data type constants
The HCL
OneDB™ ESQL/C sqltypes.h header
file contains integer constants for both SQL and HCL
OneDB ESQL/C data
types. Some HCL
OneDB 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 HCL
OneDB 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.