Connector/ODBC Reference
1802
Function Name
Connector/
ODBC
Supports?
Standard
Purpose
SQLFreeConnect
Yes
Deprecated Releases connection handle.
SQLFreeEnv
Yes
Deprecated Releases an environment handle.
20.1.6.2. Connector/ODBC Data Types
The following table illustrates how Connector/ODBC maps the server data types to default SQL and C
data types.
Table 20.17. How Connector/ODBC Maps MySQL Data Types to SQL and C Data Types
Native Value
SQL Type
C Type
bigint unsigned
SQL_BIGINT
SQL_C_UBIGINT
bigint
SQL_BIGINT
SQL_C_SBIGINT
bit
SQL_BIT
SQL_C_BIT
bit
SQL_CHAR
SQL_C_CHAR
blob
SQL_LONGVARBINARY
SQL_C_BINARY
bool
SQL_CHAR
SQL_C_CHAR
char
SQL_CHAR
SQL_C_CHAR
date
SQL_DATE
SQL_C_DATE
datetime
SQL_TIMESTAMP
SQL_C_TIMESTAMP
decimal
SQL_DECIMAL
SQL_C_CHAR
double precision
SQL_DOUBLE
SQL_C_DOUBLE
double
SQL_FLOAT
SQL_C_DOUBLE
enum
SQL_VARCHAR
SQL_C_CHAR
float
SQL_REAL
SQL_C_FLOAT
int unsigned
SQL_INTEGER
SQL_C_ULONG
int
SQL_INTEGER
SQL_C_SLONG
integer unsigned
SQL_INTEGER
SQL_C_ULONG
integer
SQL_INTEGER
SQL_C_SLONG
long varbinary
SQL_LONGVARBINARY
SQL_C_BINARY
long varchar
SQL_LONGVARCHAR
SQL_C_CHAR
longblob
SQL_LONGVARBINARY
SQL_C_BINARY
longtext
SQL_LONGVARCHAR
SQL_C_CHAR
mediumblob
SQL_LONGVARBINARY
SQL_C_BINARY
mediumint unsigned
SQL_INTEGER
SQL_C_ULONG
mediumint
SQL_INTEGER
SQL_C_SLONG
mediumtext
SQL_LONGVARCHAR
SQL_C_CHAR
numeric
SQL_NUMERIC
SQL_C_CHAR
real
SQL_FLOAT
SQL_C_DOUBLE
set
SQL_VARCHAR
SQL_C_CHAR
smallint unsigned
SQL_SMALLINT
SQL_C_USHORT
smallint
SQL_SMALLINT
SQL_C_SSHORT
text
SQL_LONGVARCHAR
SQL_C_CHAR
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...