Connector/ODBC Reference
1801
Table 20.13. ODBC API Calls for Obtaining Information about the Data Source's System Tables
(Catalog Functions) Item
Function Name
Connector/
ODBC
Supports?
Standard
Purpose
SQLColumnPrivileges
Yes
ODBC
Returns a list of columns and associated
privileges for one or more tables.
SQLColumns
Yes
X/Open
Returns the list of column names in specified
tables.
SQLForeignKeys
Yes
ODBC
Returns a list of column names that make up
foreign keys, if they exist for a specified table.
SQLPrimaryKeys
Yes
ODBC
Returns the list of column names that make up the
primary key for a table.
SQLSpecialColumns
Yes
X/Open
Returns information about the optimal set
of columns that uniquely identifies a row in
a specified table, or the columns that are
automatically updated when any value in the row
is updated by a transaction.
SQLStatistics
Yes
ISO 92
Returns statistics about a single table and the list
of indexes associated with the table.
SQLTablePrivileges
Yes
ODBC
Returns a list of tables and the privileges
associated with each table.
SQLTables
Yes
X/Open
Returns the list of table names stored in a specific
data source.
Table 20.14. ODBC API Calls for Performing Transactions
Function Name
Connector/
ODBC
Supports?
Standard
Purpose
SQLTransact
Yes
Deprecated Commits or rolls back a transaction
SQLEndTran
Yes
ISO 92
Commits
or
rolls back
a
transaction
.
Table 20.15. ODBC API Calls for Terminating a Statement
Function Name
Connector/
ODBC
Supports?
Standard
Purpose
SQLFreeStmt
Yes
ISO 92
Ends statement processing, discards pending
results, and, optionally, frees all resources
associated with the statement handle.
SQLCloseCursor
Yes
ISO 92
Closes a cursor that has been opened on a
statement handle.
SQLCancel
Yes
ISO 92
Cancels an SQL statement.
Table 20.16. ODBC API Calls for Terminating a Connection
Function Name
Connector/
ODBC
Supports?
Standard
Purpose
SQLDisconnect
Yes
ISO 92
Closes the connection.
SQLFreeHandle
Yes
ISO 92
Releases an environment, connection, statement,
or descriptor handle.
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 ...