Re: Problem with inheritance

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problem with inheritance
Дата
Msg-id 29830.980525933@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Problem with inheritance  (Alfonso Peniche <alfonso@iteso.mx>)
Список pgsql-general
Alfonso Peniche <alfonso@iteso.mx> writes:
> I have the following inheritance relation:

>           user
>               |
>    ----------
>    |                    |
> student      employee

> If I insert John into table student, how can I insert him afterwards so
> that he is also an employee (this could happen several days later)?

If a student could also be an employee, then your table layout is
fundamentally wrong.

            regards, tom lane

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

Предыдущее
От: Alfonso Peniche
Дата:
Сообщение: Problem with inheritance
Следующее
От: Marc SCHAEFER
Дата:
Сообщение: Re: Problem with inheritance