Re: The old Insert and retrieving your Serial problem in

Поиск
Список
Период
Сортировка
От John McCawley
Тема Re: The old Insert and retrieving your Serial problem in
Дата
Msg-id 455A4777.9030902@hardgeus.com
обсуждение исходный текст
Ответ на Re: The old Insert and retrieving your Serial problem in VB  (Martijn van Oosterhout <kleptog@svana.org>)
Ответы Re: The old Insert and retrieving your Serial problem in
Re: The old Insert and retrieving your Serial problem in
Список pgsql-general
That looks like the solution to my problem, thanks!...I tried running it
on my 8.0.8 server, but it wasn't found, I assume that's an 8.1 only
function?

Martijn van Oosterhout wrote:

>On Tue, Nov 14, 2006 at 03:54:42PM -0600, John McCawley wrote:
>
>
>>I am once again dealing with that age old problem of retrieving the
>>value of your inserted serial field in VB.  I am fully aware that I can
>>manually pull the currval or nextval from my sequence, but I consider
>>having to manually deal with an auto-generated database object an
>>*extremely* inelegant solution.
>>
>>
>
>Maybe you're looking for lastval()?
>
>http://www.postgresql.org/docs/8.1/interactive/functions-sequence.html
>
>Have a nice day,
>
>

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

Предыдущее
От: Paul Silveira
Дата:
Сообщение: Using SAN Splits to instantly copy a DB
Следующее
От: Shelby Cain
Дата:
Сообщение: PG_MODULE_MAGIC check in 8.2