34.9. check_constraints

Представление check_constraints показывает все ограничения-проверки, либо определённые для таблицы или домена, либо принадлежащие текущей активной роли. (Владелец таблицы или домена является владельцем ограничения.)

Таблица 34-7. Колонки check_constraints

ИмяТип данныхОписание
constraint_catalogsql_identifierИмя базы данных, содержащей ограничение (всегда текущая база)
constraint_schemasql_identifierИмя схемы, содержащей ограничение
constraint_namesql_identifierИмя ограничения
check_clausecharacter_dataВыражение проверки для ограничения

34.9. check_constraints

The view check_constraints contains all check constraints, either defined on a table or on a domain, that are owned by a currently enabled role. (The owner of the table or domain is the owner of the constraint.)

Table 34-7. check_constraints Columns

NameData TypeDescription
constraint_catalogsql_identifierName of the database containing the constraint (always the current database)
constraint_schemasql_identifierName of the schema containing the constraint
constraint_namesql_identifierName of the constraint
check_clausecharacter_dataThe check expression of the check constraint
FAQ