<div class="meta" robots="noindex">

</div>

Method

# ODBCDatabase.ForeignKeys

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2021r2. Please use `ODBCDatabase.TableForeignKeys<odbcdatabase.tableforeignkeys>` as a replacement.

</div>

## Description

Returns a `Recordset</api/deprecated/recordset>` containing either a list of foreign keys in the specified table (columns in the specified table that refer to primary keys in other tables), or a list of foreign keys in other tables that refer to the primary key in the specified table.
