次の方法で共有


CForeignKeys, CForeignKeysInfo

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CForeignKeys, CForeignKeysInfo.

Call the typedef class CForeignKeys to implement its parameter class CForeignKeysInfo.

Remarks

See Schema Rowset Classes and Typedef Classes for more information on using typedef classes.

This class identifies the foreign key columns defined in the catalog by a given user.

The following table lists the class data members and their corresponding OLE DB Columns. See FOREIGN_KEYS Rowset in the OLE DB Programmer's Reference for more information about the schema and columns.

Data members OLE DB columns
m_szPKTableCatalog PK_TABLE_CATALOG
m_szPKTableSchema PK_TABLE_SCHEMA
m_szPKTableName PK_TABLE_NAME
m_szPKColumnName PK_COLUMN_NAME
m_guidPKColumn PK_COLUMN_GUID
m_nPKColumnPropID PK_COLUMN_PROPID
m_szFKTableCatalog FK_TABLE_CATALOG
m_szFKTableSchema FK_TABLE_SCHEMA
m_szFKTableName FK_TABLE_NAME
m_szFKColumnName FK_COLUMN_NAME
m_guidFKColumn FK_COLUMN_GUID
m_nFKColumnPropID FK_COLUMN_PROPID
m_nOrdinal ORDINAL
m_szUpdateRule UPDATE_RULE
m_szDeleteRule DELETE_RULE

Requirements

Header: atldbsch.h

See Also

CRestrictions Class