Function odbc_sys::SQLForeignKeys
source · pub unsafe extern "system" fn SQLForeignKeys(
statement_handle: HStmt,
pk_catalog_name: *const Char,
pk_catalog_name_length: SmallInt,
pk_schema_name: *const Char,
pk_schema_name_length: SmallInt,
pk_table_name: *const Char,
pk_table_name_length: SmallInt,
fk_catalog_name: *const Char,
fk_catalog_name_length: SmallInt,
fk_schema_name: *const Char,
fk_schema_name_length: SmallInt,
fk_table_name: *const Char,
fk_table_name_length: SmallInt
) -> SqlReturn
Expand description
Can return:
- A list of foreign keys in the specified table (columns in the specified table that refer to primary keys in other tables).
- A list of foreign keys in other tables that refer to the primary key in the specified table.
The driver returns each list as a result set on the specified statement.
Returns
SUCCESS
, SUCCESS_WITH_INFO
, ERROR
, INVALID_HANDLE
, or SQL_STILL_EXECUTING
.