Modifying check constraints

Поиск
Список
Период
Сортировка
От Paulo Jan
Тема Modifying check constraints
Дата
Msg-id 3BF13B42.92A3D6B0@digital.ddnet.es
обсуждение исходный текст
Список pgsql-general
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?




                        Paulo Jan.
                        DDnet.

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

Предыдущее
От: "Ilker Egilmez"
Дата:
Сообщение: index on numbers not honoured
Следующее
От: Cristóvão Dalla Costa
Дата:
Сообщение: storing binary data