文档首页
MySQL 8.4 参考手册
8.4 中文镜像

MySQL 8.4 参考手册 · 中文镜像

正文为中文,英文原文默认隐藏。点击任意中文段落即可展开 / 收起对应英文原文。

打开官方英文原文 ↗

译文由机器翻译生成,仅供理解参考;有疑问请以官方英文原文为准。

MySQL 8.4 参考手册 / 28 个 INFORMATION_SCHEMA 表 / 28.3 INFORMATION_SCHEMA 总表 / 28.3.25 INFORMATION_SCHEMA REFERENTIAL_CONSTRAINTS 表
中文点击中文段落可显示 / 隐藏英文原文本页译文覆盖 72%

28.3.25 INFORMATION_SCHEMA REFERENTIAL_CONSTRAINTS 表28.3.25 The INFORMATION_SCHEMA REFERENTIAL_CONSTRAINTS Table

REFERENTIAL_CONSTRAINTS 表提供关于外键的信息。The REFERENTIAL_CONSTRAINTS table provides information about foreign keys.

REFERENTIAL_CONSTRAINTS 表有以下列:The REFERENTIAL_CONSTRAINTS table has these columns:

  • CONSTRAINT_CATALOGCONSTRAINT_CATALOG

    约束所属的目录名称。该值始终为 def。The name of the catalog to which the constraint belongs. This value is always def.

  • CONSTRAINT_SCHEMACONSTRAINT_SCHEMA

    约束所属的模式(数据库)名称。The name of the schema (database) to which the constraint belongs.

  • CONSTRAINT_NAMECONSTRAINT_NAME

    约束的名称。The name of the constraint.

  • UNIQUE_CONSTRAINT_CATALOG

    包含约束所引用的唯一约束的目录名称。此值始终为 def。The name of the catalog containing the unique constraint that the constraint references. This value is always def.

  • UNIQUE_CONSTRAINT_SCHEMA

    包含约束所引用的唯一约束的模式的名称。The name of the schema containing the unique constraint that the constraint references.

  • UNIQUE_CONSTRAINT_NAME

    约束所引用的唯一约束的名称。The name of the unique constraint that the constraint references.

  • MATCH_OPTION

    约束 MATCH 属性的值。目前唯一有效的值是 NONE。The value of the constraint MATCH attribute. The only valid value at this time is NONE.

  • UPDATE_RULE

    约束 ON UPDATE 属性的值。可能的值有 CASCADE、SET NULL、SET DEFAULT、RESTRICT、NO ACTION。The value of the constraint ON UPDATE attribute. The possible values are CASCADE, SET NULL, SET DEFAULT, RESTRICT, NO ACTION.

  • DELETE_RULE

    约束 ON DELETE 属性的值。可能的值有 CASCADE、SET NULL、SET DEFAULT、RESTRICT、NO ACTION。The value of the constraint ON DELETE attribute. The possible values are CASCADE, SET NULL, SET DEFAULT, RESTRICT, NO ACTION.

  • TABLE_NAMETABLE_NAME

    表的名称。该值与 TABLE_CONSTRAINTS 表中的值相同。The name of the table. This value is the same as in the TABLE_CONSTRAINTS table.

  • REFERENCED_TABLE_NAME

    约束引用的表名称。The name of the table referenced by the constraint.