Re: Thoughts on a cosntraint ?

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: Thoughts on a cosntraint ?
Дата
Msg-id b8fe02b3-abf9-445f-49f7-af13486590f5@aklaver.com
обсуждение исходный текст
Ответ на Thoughts on a cosntraint ?  (stan <stanb@panix.com>)
Список pgsql-general
On 9/29/19 12:40 PM, stan wrote:
> 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.

Where is the project id?

> 
> I would be interested in seeing other peoples approaches on this, also.
> 
> Any thoughts?
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com



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

Предыдущее
От: Rob Sargent
Дата:
Сообщение: Re: Thoughts on a cosntraint ?
Следующее
От: "Colin 't Hart"
Дата:
Сообщение: Redis 16 times faster than Postgres?