mutually exclusive subtypes

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

TRANSPORTATION_MODE
mode_ID serial
model_number text

AIRPLANE
mode_ID int FK
operational_ceiling nt

AUTOMOBILE
mode_ID int FK
cruising range int


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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: PostgreSQL a slow DB?
Следующее
От: "Daniel T. Staal"
Дата:
Сообщение: Re: mutually exclusive subtypes