Re: Modifying check constraints

Поиск
Список
Период
Сортировка
Искать
От
Stephan Szabo
Тема
Re: Modifying check constraints
Дата
Msg-id
20011114112731.P97884-100000@megazone23.bigpanda.com
Ответ на
Список
Дерево обсуждения
Re: Modifying check constraints Vivek Khera <khera@kcilink.com>
Re: Modifying check constraints Stephan Szabo <sszabo@megazone23.bigpanda.com>
Re: Modifying check constraints Vivek Khera <khera@kcilink.com>
Re: Modifying check constraints "Andrew G. Hammond" <drew@xyzzy.dhs.org>
On Wed, 14 Nov 2001, Paulo Jan wrote:

> Hi all:
>
>         Let's suppose I create a table with a CHECK constraint, like:
>
>         CREATE TABLE blabla (id int, tipo varchar(8),
>         CHECK tipo IN ('tipo1', 'tipo2', 'tipo3'))
>
>         Can I change the CHECK constraint afterwards? For example, can I
> add another value that "tipo" can have, or I'd have to recreate the
> table?

Right now, I think you'd need to recreate, but 7.2 should let you drop
and re-add the check constraint.

В списке pgsql-general по дате отправления
От: Jason Earl
Дата:
От: Brent Verner
Дата:
FAQ