32.34. table_constraints

視圖 table_constraints 包含所有屬于當前用戶的表裡面的約束。

Table 32-32. table_constraints 字段

名字數據類型描述
constraint_catalogsql_identifier包含該約束地數據庫的名字(總是當前數據庫)
constraint_schemasql_identifier包含這個約束的模式名字
constraint_namesql_identifier約束的名字
table_catalogsql_identifier包含該表的數據庫的名字(總是當前數據庫)
table_schemasql_identifier包含此表得模式名
table_namesql_identifier表的名字
constraint_typecharacter_data 約束的類型 CHECKFOREIGN KEYPRIMARY KEY,或者 UNIQUE
is_deferrablecharacter_data如果約束可以推遲,為 YES,否則為 NO
initially_deferredcharacter_data如果越是是可以推遲並且首先推遲的,為 YES,否則為 NO