Re: Partial foreign keys, check constraints and inheritance
От
Greg Stark
Тема
Re: Partial foreign keys, check constraints and inheritance
Дата
Msg-id
87hdaar5nt.fsf@stark.xeocode.com
Ответ на
Re: Partial foreign keys, check constraints and inheritance (Jaime Casanova)
Список
Дерево обсуждения
Partial foreign keys, check constraints and inheritance Eric E <whalesuit@gmail.com>
Re: Partial foreign keys, check constraints and inheritance Jaime Casanova <systemguards@gmail.com>
Re: Partial foreign keys, check constraints and inheritance Eric E <whalesuit@gmail.com>
Re: Partial foreign keys, check constraints and inheritance "Jim C. Nasby" <jnasby@pervasive.com>
Re: Partial foreign keys, check constraints and inheritance Eric E <whalesuit@gmail.com>
Re: Partial foreign keys, check constraints and Scott Marlowe <smarlowe@g2switchworks.com>
Re: Partial foreign keys, check constraints and inheritance Eric E <whalesuit@gmail.com>
Re: Partial foreign keys, check constraints and inheritance Greg Stark <gsstark@mit.edu>
> On 11/17/05, Eric E wrote: > > > > What's the best way to do this? My immediate reaction is that I want a > > partial foreign key, but perhaps this is not a good way to go about such > > a design. Normally I just have multiple columns with all but one NULL. Alternatively you can make it a many-to-many relationship. So you have a problem table and then you have a problem_product, problem_customer, and a problem_order table. -- greg
В списке pgsql-general по дате отправления