OleDbSchemaGuid.Table_Constraints 字段
定义
返回在目录中定义的由给定用户拥有的表约束。Returns the table constraints defined in the catalog that is owned by a given user.
public: static initonly Guid Table_Constraints;
public static readonly Guid Table_Constraints;
staticval mutable Table_Constraints : Guid
Public Shared ReadOnly Table_Constraints As Guid
字段值
注解
Table_Constraints 映射到 OLE DB TABLE_CONSTRAINTS 行集。Table_Constraints maps to the OLE DB TABLE_CONSTRAINTS rowset. 除非另外指定,否则将按以下顺序返回限制列。Unless otherwise specified, restriction columns are returned in the following order.
| 限制列Restriction column | CLR 数据类型CLR data type | 说明Description |
|---|---|---|
| CONSTRAINT_CATALOGCONSTRAINT_CATALOG | string |
目录名称。Catalog name. 如果提供程序不支持目录,则为 null 值。A null value if the provider does not support catalogs. |
| CONSTRAINT_SCHEMACONSTRAINT_SCHEMA | string |
非限定的架构名称。Unqualified schema name. 如果提供程序不支持架构,则为 null 值。A null value if the provider does not support schemas. |
| CONSTRAINT_NAMECONSTRAINT_NAME | string |
约束名称。Constraint name. |
| TABLE_CATALOGTABLE_CATALOG | string |
定义表的目录名称。Catalog name in which the table is defined. 如果提供程序不支持目录,则为 null 值。A null value if the provider does not support catalogs. |
| TABLE_SCHEMATABLE_SCHEMA | string |
定义表的非限定架构名称。Unqualified schema name in which the table is defined. 如果提供程序不支持架构,则为 null 值。A null value if the provider does not support schemas. |
| TABLE_NAMETABLE_NAME | string |
表名。Table name. |
| CONSTRAINT_TYPECONSTRAINT_TYPE | string |
约束类型。Constraint type. 以下项之一: UNIQUE、PRIMARY KEY、FOREIGN KEY 或 CHECK。One of the following: UNIQUE, PRIMARY KEY, FOREIGN KEY, or CHECK. |