Re: How do I get the rec-id from an insert.

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: How do I get the rec-id from an insert.
Дата
Msg-id 20020829225815.GB347@wolff.to
обсуждение исходный текст
Ответ на Re: How do I get the rec-id from an insert.  (Clinton Adams <clinton@vote-smart.org>)
Ответы Re: How do I get the rec-id from an insert.  (Clinton Adams <clinton@vote-smart.org>)
Список pgsql-php
On Thu, Aug 29, 2002 at 15:00:15 -0600,
  Clinton Adams <clinton@vote-smart.org> wrote:
> Chris -
>
> You don't really need to know the key values - make it one query:
>
> insert into c values (nextval('crecid'), currval('arecid'), currval('brecid'))

Is it documented that the above is reliable? I don't remember ever reading
that expressions are evaluated in the order they appear in a select
statement.

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

Предыдущее
От: Clinton Adams
Дата:
Сообщение: Re: How do I get the rec-id from an insert.
Следующее
От: Clinton Adams
Дата:
Сообщение: Re: How do I get the rec-id from an insert.