top of page

SQL developer for PostgreSQL

Открытая·2 пользователя

PostgreSQL: column check


[EN]

A check constraint is the most common type of constraint. In its definition, you can specify that the value of a given column must satisfy a Boolean expression (truth test)


SELECT r.oid,

r.conname,

pg_catalog.pg_get_constraintdef(r.oid, true) "pg_get_constraintdef"

FROM pg_catalog.pg_constraint r

WHERE r.conrelid = $$TABLEOID

AND r.contype = 'c'

ORDER BY 1


[RU]

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


SELECT r.oid,

r.conname,

pg_catalog.pg_get_constraintdef(r.oid, true) "pg_get_constraintdef"

FROM pg_catalog.pg_constraint r

WHERE r.conrelid = $$TABLEOID

AND r.contype = 'c'

ORDER BY 1


3 просмотра

О группе

Добро пожаловать в группу! Общайтесь с другими участниками, получайте обновления и делитесь фото и видео.

Участники

bottom of page