Re: mysql's last_insert_id

Поиск
Список
Период
Сортировка
Искать
От
Eric Johnson
Тема
Re: mysql's last_insert_id
Дата
Msg-id
00ba01c36c4a$36379d60$1a08090a@MINIDEV
Список
Дерево обсуждения
mysql's last_insert_id Michal Adamczakk <pokryfka@artland.com.pl>
RE : mysql's last_insert_id "Bruno BAGUETTE" <pgsql-ml@baguette.net>
Re: mysql's last_insert_id Bo Lorentsen <bl@netgroup.dk>
Re: mysql's last_insert_id Dennis Björklund <db@zigo.dhs.org>
Re: mysql's last_insert_id Bo Lorentsen <bl@netgroup.dk>
Re: mysql's last_insert_id Martijn van Oosterhout <kleptog@svana.org>
Re: mysql's last_insert_id Bo Lorentsen <bl@netgroup.dk>
Re: mysql's last_insert_id Martijn van Oosterhout <kleptog@svana.org>
Re: mysql's last_insert_id Dennis Björklund <db@zigo.dhs.org>
Re: mysql's last_insert_id Bo Lorentsen <bl@netgroup.dk>
Re: mysql's last_insert_id Dennis Björklund <db@zigo.dhs.org>
Re: mysql's last_insert_id Dennis Gearon <gearond@fireserve.net>
Re: mysql's last_insert_id Bo Lorentsen <bl@netgroup.dk>
Re: mysql's last_insert_id Bruce Momjian <pgman@candle.pha.pa.us>
Re: mysql's last_insert_id Bo Lorentsen <bl@netgroup.dk>
Re: mysql's last_insert_id Bruce Momjian <pgman@candle.pha.pa.us>
Re: mysql's last_insert_id Stuart <deststar@blueyonder.co.uk>
I'm doing this in an app right now by using stored procedures and sequences.
The stored procedure for a table will get the next value of the sequence and
use that in the insert statement.  It then returns that id as the result so
the application can use it elsewhere.

Eric Johnson

----- Original Message ----- 
From: "Michal Adamczakk" 
To: 
Sent: Friday, August 22, 2003 3:03 PM
Subject: [GENERAL] mysql's last_insert_id


> hi,
>
> how to implement mysql's last_insert_id() ?
>
> i know that seqences and oids are great.
> the one thing i miss is that they are not session specific.
>
> i mean selecting last_value from seqence can give me a value which was
> inserted by a different user.
>
> regards
> Michal
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
>                http://archives.postgresql.org
>


В списке pgsql-general по дате отправления
От: Juris Krumins
Дата:
Сообщение: Again about temporary table
От: Christian Traber
Дата:
Сообщение: pgplsql - Oracle nvl
FAQ