Foreign key to 2 tables problem

Поиск
Список
Период
Сортировка
От Joost Kraaijeveld
Тема Foreign key to 2 tables problem
Дата
Msg-id 1132673053.5701.9.camel@Panoramix
обсуждение исходный текст
Ответы Re: Foreign key to 2 tables problem  (Neil Saunders <n.j.saunders@gmail.com>)
Re: Foreign key to 2 tables problem  (Achilleus Mantzios <achill@matrix.gatewaynet.com>)
Re: Foreign key to 2 tables problem  (John McCawley <nospam@hardgeus.com>)
Re: Foreign key to 2 tables problem  (Rod Taylor <pg@rbt.ca>)
Список pgsql-sql
Hi,

Is there a way to create a foreign key to 2 tables: e.g. a bankaccount
table that has a column "owner", that must point to a record in either
the customer or the supplier table?


TIA

-- 
Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
e-mail: J.Kraaijeveld@Askesis.nl
web: www.askesis.nl 




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

Предыдущее
От: "Leif B. Kristensen"
Дата:
Сообщение: Triggers
Следующее
От: Achilleus Mantzios
Дата:
Сообщение: Re: Triggers