Re: dropping anonymous constraints

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: dropping anonymous constraints
Дата
Msg-id 11288.1026882746@sss.pgh.pa.us
обсуждение исходный текст
Ответ на dropping anonymous constraints  (Ben Liblit <liblit@eecs.berkeley.edu>)
Ответы Re: dropping anonymous constraints  (Ben Liblit <liblit@eecs.berkeley.edu>)
Список pgsql-general
Ben Liblit <liblit@eecs.berkeley.edu> writes:
> Given a table "data" with column "value", one can add a constraint that
> has no name:
>      ALTER TABLE data ADD CHECK (value > 0);
> How, then, does one remove this constraint?

The constraint *does* have a name, it's just an auto-assigned one
(probably of the form "$n").  Try psql's \d command to check out
constraint names.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Justin Clift
Дата:
Сообщение: Re: ? about Installation of Postgresql
Следующее
От: Thomas Lockhart
Дата:
Сообщение: Re: OIDs (Or: another RTFM question?)