PHP3 Manual
PrevNext

pg_GetLastOid

pg_GetLastOid -- Returns the last object identifier

Description

int pg_getlastoid(void);

pg_GetLastOid() can be used to retrieve the Oid assigned to an inserted tuple if the last command sent via pg_Exec() 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.


PrevHomeNext
pg_FreeResultUppg_Host