Michal Adamczakk wrote:
> 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
>
The currval('seq_name') returns the last for the specific connection,
not the last returned of any
hth,
- Stuart