This topics shows all of the supported SQL types and their corresponding symbolic names.
Table 1 shows all of the supported SQL types and their corresponding symbolic names. The symbolic names are used in SQLBindParam(), SQLBindParameter(), SQLSetParam(), SQLBindCol(), and SQLGetData() to indicate the data types of the arguments.
SQL type | SQL symbolic |
---|---|
BIGINT | SQL_BIGINT |
BINARY | SQL_BINARY |
BLOB | SQL_BLOB |
CHAR | SQL_CHAR, SQL_WCHAR1 |
CLOB | SQL_CLOB |
DATE | SQL_DATE |
DBCLOB | SQL_DBCLOB |
DECIMAL | SQL_DECIMAL |
DOUBLE | SQL_DOUBLE |
FLOAT | SQL_FLOAT |
GRAPHIC | SQL_GRAPHIC |
INTEGER | SQL_INTEGER |
NUMERIC | SQL_NUMERIC |
REAL | SQL_REAL |
SMALLINT | SQL_SMALLINT |
TIME | SQL_TIME |
TIMESTAMP | SQL_TIMESTAMP |
VARBINARY | SQL_VARBINARY |
VARCHAR | SQL_VARCHAR, SQL_WVARCHAR1 |
VARGRAPHIC | SQL_VARGRAPHIC |
|