Web-shop for only 500 euro during 3 days, +38 068 801 14 71 (Kiev, Ukraine)
(PHP 3, PHP 4 ) pg_getlastoid -- Returns the last object identifier Descriptionint pg_getlastoid (int result_id)
Pg_getlastoid() can be used to retrieve the oid assigned to an inserted tuple if the result identifier is used from the last command sent via pg_exec() and was an SQL INSERT. This function will return a positive integer if there was a valid oid. It will return -1 if an error occured or the last command sent via pg_exec() was not an INSERT. |