Re: Constraint Problem

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

> This is not quite what I need. I need to create a constraint to allow only
> -one- of
>     company<->association<->default(=true) value
> but any number of
>     company<->association<->default(=false) values

So a unique index on "(company,association) where default" doesn't do what you
want?



--
greg

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

Предыдущее
От: "scott.marlowe"
Дата:
Сообщение: Re: Constraint Problem
Следующее
От: Greg Stark
Дата:
Сообщение: Re: Cartesian product bug?