Every database system defines its own SQL data types. An ODBC driver processes only those data types that are defined by the associated database system.
You can use the SQLGetTypeInfo function to determine how an ODBC driver maps the SQL data types of the database system to the ODBC supported data types and to its own driver-specific data types, as well as the specifications for length, decimal places (scale), and the number of valid digits (precision).
The data types defined for the MaxDB database system are listed in the Data Type (data_type) [Extern] section of the Reference Manual.
MaxDB data types supported by the MaxDB ODBC driver
Character |
CHAR, VARCHAR, LONG, CHAR BYTE, VARCHAR BYTE, LONG BYTE |
Numeric |
DECIMAL, FIXED, INTEGER, SMALLINT, FLOAT, REAL, DOUBLE PRECISION |
Date |
DATE, TIME, TIMESTAMP |
Other |
BOOLEAN, CHAR EBCDIC, VARCHAR EBCDIC |