Re: How to create unique constraint on NULL columns

Поиск
Список
Период
Сортировка
От Ron Mayer
Тема Re: How to create unique constraint on NULL columns
Дата
Msg-id 42D988A3.1060405@cheapcomplexdevices.com
обсуждение исходный текст
Ответ на Re: How to create unique constraint on NULL columns  ("Andrus" <eetasoft@online.ee>)
Список pgsql-general
Andrus wrote:
>>Then redesign this as a many to many relation. ...
>
> This means adding separate row for each department into permission table.

Not really.

You can of course store an Array of department IDs in that same table.
That would probably cause the minimum impact on your queries too.

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

Предыдущее
От: Ron Mayer
Дата:
Сообщение: Re: Converting MySQL tinyint to PostgreSQL
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: foreign key constraints and inheritence