Thoughts on a cosntraint ?

Поиск
Список
Период
Сортировка
От stan
Тема Thoughts on a cosntraint ?
Дата
Msg-id 20190929194020.GA16517@panix.com
обсуждение исходный текст
Ответы Re: Thoughts on a cosntraint ?
Re: Thoughts on a cosntraint ?
Список pgsql-general
I have a table that consists of 3 columns.

vendor_key
mfg_key
preferred (boolean)

The idea is that a given vendor is the vendor we want to use for each
manufacturer for a given project.

I need to constrain such that  only on row of mfg, vendor and project can
be set to TRUE.

I would be interested in seeing other peoples approaches on this, also.

Any thoughts? 
-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
                        -- Benjamin Franklin



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Possible bug: SQL function parameter in window frame definition
Следующее
От: John W Higgins
Дата:
Сообщение: Re: Thoughts on a cosntraint ?