NYCPHP Meetup

NYPHP.org

[nycphp-talk] getting last inserted id with PostgreSQL

Matthew Terenzio webmaster at localnotion.com
Sat Nov 20 13:25:26 EST 2004


On Nov 20, 2004, at 12:42 PM, Jayesh Sheth wrote:

> Basicly, currval() gives the last id for that sequence in that 
> session. So
> other sessions does not break anything.

I guess the only doubt lingering is whether using a persistent 
connection method from PHP will make a DB think one session is 
happening even though any number of pages might be borrowing the 
connection.

Does anyone know the lowdown on this?




More information about the talk mailing list