information_schema系统表——TABLE_CONSTRAINTS

来源:互联网 发布:淘宝直通车定时投放 编辑:程序博客网 时间:2024/06/06 02:53
表约束信息

INFORMATION_SCHEMA NameSHOW NameRemarksCONSTRAINT_CATALOG defCONSTRAINT_SCHEMA  CONSTRAINT_NAME  TABLE_SCHEMA  TABLE_NAME  CONSTRAINT_TYPE  

Notes:

  • The CONSTRAINT_TYPE value can be UNIQUEPRIMARY KEY, or FOREIGN KEY.

  • The UNIQUE and PRIMARY KEY information is about the same as what you get from the Key_name field in the output from SHOW INDEX when the Non_unique field is 0.

  • The CONSTRAINT_TYPE column can contain one of these values: UNIQUEPRIMARY KEYFOREIGN KEYCHECK. This is a CHAR (not ENUM) column. The CHECK value is not available until we support CHECK.


阅读全文
0 0
原创粉丝点击