Entering content frame

 SQL Data Types 

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 function SQLGetTypeInfo 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 in the Reference Manual, in the section Data Type.

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

 

 

Leaving content frame