Re: Object Relational, Foreign Keys and Triggers

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Object Relational, Foreign Keys and Triggers
Дата
Msg-id 20050125082331.GC29308@svana.org
обсуждение исходный текст
Ответ на Object Relational, Foreign Keys and Triggers  (Alex Turner <armtuk@gmail.com>)
Ответы Re: Object Relational, Foreign Keys and Triggers  (Alex Turner <armtuk@gmail.com>)
Список pgsql-general
On Mon, Jan 24, 2005 at 07:22:32PM -0500, Alex Turner wrote:
> I am facing the classic pgsql ORDBMS problem:

<snip>

Why are you using MAX()? That won't work at all. Perhaps you need to
look up the documentation for nextval and currval. In particular, that
second query should be:

insert into entity_phone select currval('entity_id_seq'),'610 495 5000';

Also, I'm not sure if inheritance works quite the way you think in the
example you give, though other people may correct me on that.

Hope this helps,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Вложения

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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: on update / on delete performance of foreign keys
Следующее
От: Nicolai Tufar
Дата:
Сообщение: Re: SCHEMA compatibility with Oracle/DB2/Firebird