Re: Modifying check constraints

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Modifying check constraints
Дата
Msg-id 20011114112731.P97884-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Modifying check constraints  (Paulo Jan <admin@digital.ddnet.es>)
Список pgsql-general
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
Дата:
Сообщение: Re: Modifying check constraints
Следующее
От: Brent Verner
Дата:
Сообщение: where can I get mailing list archives in mbox format?