mutually exclusive subtypes

Поиск
Список
Период
Сортировка
От Olinga K. Abbott
Тема mutually exclusive subtypes
Дата
Msg-id 20060412212132.8626.qmail@web31802.mail.mud.yahoo.com
обсуждение исходный текст
Список pgsql-novice
Let's say I have the following contrived schema:

TRANSPORTATION_MODE
modeID serial
model_number text

AIRPLANE
airplaneID serial
operational_ceiling int
modeID int FK

AUTOMOBILE
automobileID serial
cruising range int
modeID int FK

Of course, being an airplane and being an automobile are mutually exclusive.
How does one program the mutual exclusivity in PostgreSQL? I've studied using
check contraints, triggers, and rules, but I'm not finding any obvious way to
program this.

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

Предыдущее
От: Chris Browne
Дата:
Сообщение: Re: Curses interface
Следующее
От: "Relaxin"
Дата:
Сообщение: Re: PostgreSQL a slow DB?