Re: Exploring sequences (sequence context within a tran saction)

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Exploring sequences (sequence context within a tran saction)
Дата
Msg-id 20010613082115.B20924@wolff.to
обсуждение исходный текст
Ответ на RE: Exploring sequences (sequence context within a tran saction)  ("Sykora, Dale" <Dale.Sykora@COMPAQ.com>)
Список pgsql-general
On Tue, Jun 12, 2001 at 02:08:13PM -0500,
  "Sykora, Dale" <Dale.Sykora@COMPAQ.com> wrote:
> Erik,
>     If your bar column has unique values, perhaps you could SELECT foo
> FROM foobar where bar='whatever'; after your insert. Or perhaps write a
> procedure that stores the currval into a variable named by user/session/etc
> if this is possible.

currval is already tied to the current session. You can use it to refer
to the last serial value used in the current session.

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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: [SQL] ORDER BY what?
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Re: very big problem with NULL