Re: MySQL LAST_INSERT_ID() to Postgres

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: MySQL LAST_INSERT_ID() to Postgres
Дата
Msg-id dcc563d10808281546r5aaba4a5g53a8980408320340@mail.gmail.com
обсуждение исходный текст
Ответ на Re: MySQL LAST_INSERT_ID() to Postgres  (Joshua Drake <jd@commandprompt.com>)
Ответы Re: MySQL LAST_INSERT_ID() to Postgres  (Joshua Drake <jd@commandprompt.com>)
Список pgsql-general
On Thu, Aug 28, 2008 at 4:18 PM, Joshua Drake <jd@commandprompt.com> wrote:
> On Thu, 28 Aug 2008 16:06:14 -0600
> "Scott Marlowe" <scott.marlowe@gmail.com> wrote:
>> No, setval, currval, and lastval all require as an argument a sequence
>> name.  So the real issue is you have to know the sequence name to use
>> them.
>
> lastval() does not take a sequence name.

Sorry, haven't used lastval before, was making an incorrect assumption about it.

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

Предыдущее
От: Joshua Drake
Дата:
Сообщение: Re: MySQL LAST_INSERT_ID() to Postgres
Следующее
От: Joshua Drake
Дата:
Сообщение: Re: MySQL LAST_INSERT_ID() to Postgres