> I am working on a site using PHP (obviously) and PostgreSQL. I am 
> currently using the oid as a key on a table. I would like to return the 
> user to the same record after INSERTing it, but I cannot figure out how 
> to get the oid of the record after doing an INSERT. Ideally, I would 
> like something like:
> 
> So, how do I insert a new record into the database, and get the oid of 
> the record I just inserted?
> 

See http://www.php.net/manual/en/function.pg-getlastoid.php

Hope this helps,

Joe



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to