pg_last_oid

pg_last_oid

(PHP 4 >= 4.2.0, PHP 5, PHP 7)

pg_last_oidReturns the last row's OID

Description

string pg_last_oid ( resource $result )

pg_last_oid() is used to retrieve the OID assigned to an inserted row.

OID field became an optional field from PostgreSQL 7.2 and will not be present by default in PostgreSQL 8.1. When the OID field is not present in a table, the programmer must use pg_result_status()登录查看完整内容