Re: Constraint Problem

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Constraint Problem
Дата
Msg-id 87oevr52hf.fsf@stark.dyndns.tv
обсуждение исходный текст
Ответ на Re: Constraint Problem  (Ron St-Pierre <rstpierre@syscor.com>)
Список pgsql-general
Ron St-Pierre <rstpierre@syscor.com> writes:

> Greg Stark wrote:
>
> >Try just
> >
> >create unique index on compass (company) where ysndefault

You might also want

create unique index on compass (company,association)

If a company isn't supposed to have duplicate associations at all. This would
also prevent having a default and non-default relationship to the same
association.

--
greg

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

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: Constraint Problem
Следующее
От: Greg Hulands
Дата:
Сообщение: Foreign Key to Inherited table