[GENERAL] Constraint + where

Поиск
Список
Период
Сортировка
От Patrick B
Тема [GENERAL] Constraint + where
Дата
Msg-id CAJNY3iu8nWxcKG=Xfjeo9ap8n=TfcnESadmBHO8jY4QMiCDVKw@mail.gmail.com
обсуждение исходный текст
Ответы Re: [GENERAL] Constraint + where
Список pgsql-general
Hi guys,

I've got a column 'type_note' on a new table that it's being designed:

type_note varchar(32) NOT NULL;

On that column, there will be three different data:

1. yes
2. no
3. maybe

I wanna create a FK but just when the data on that column is = maybe.

How can I do that? Thanks!

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

Предыдущее
От: Sylvain Marechal
Дата:
Сообщение: Re: [GENERAL] Best way to alter a foreign constraint
Следующее
От: Melvin Davidson
Дата:
Сообщение: Re: [GENERAL] Constraint + where