共用方式為


CTableConstraints, CTableConstraintInfo

 

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 CTableConstraints, CTableConstraintInfo.

Call the typedef class CTableConstraints to implement its parameter class CTableConstraintInfo.

Remarks

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

This class identifies the table constraints, defined in the catalog, that are owned by a given user.

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

Data members OLE DB columns
m_szCatalog CONSTRAINT_CATALOG
m_szSchema CONSTRAINT_SCHEMA
m_szName CONSTRAINT_NAME
m_szTableCatalog TABLE_CATALOG
m_szTableSchema TABLE_SCHEMA
m_szTableName TABLE_NAME
m_szType CONSTRAINT_TYPE
m_bIsDeferrable IS_DEFERRABLE
m_bInitiallyDeferred INITIALLY_DEFERRED
m_szDescription DESCRIPTION

Requirements

Header: atldbsch.h

See Also

CRestrictions Class