Re: simulating partial fkeys..

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: simulating partial fkeys..
Дата
Msg-id 20030606122001.GA30097@wolff.to
обсуждение исходный текст
Ответ на simulating partial fkeys..  (<mallah@trade-india.com>)
Ответы Elegant SQL solution:  (Chris Gamache <cgg007@yahoo.com>)
Список pgsql-sql
On Thu, Jun 05, 2003 at 20:25:32 +0530, mallah@trade-india.com wrote:
> 
> 
> hi ,
> 
> Is there any way to enforce fkeys only on subset of
> the table something on the lines of unique partial indexes
> 
> or any work around ? (on update or insert trigger is the only thing i can think of)

If the foreign column is null it isn't checked against the other table.
You can probably use this to do what you want.


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

Предыдущее
От:
Дата:
Сообщение: simulating partial fkeys..
Следующее
От: Jan Wieck
Дата:
Сообщение: Re: simulating partial fkeys..