PHP Wysardry
PHP Manual

PHP documentation.



Home / PHP / Manual / ...



PHP Manual
Prev Next

pg_getlastoid

(PHP 3 <= 3.0.18, PHP 4 >= 4.0.0)

pg_getlastoid -- Returns the last object's oid

Description

int pg_getlastoid (resource result)

pg_getlastoid() is used to retrieve the oid assigned to an inserted tuple (record) if the result resource is used from the last command sent via pg_exec() and was an SQL INSERT. Returns a positive integer if there was a valid oid. It returns FALSE if an error occurs or the last command sent via pg_exec() was not an INSERT or INSERT is failed.

See also pg_exec().


Prev Manual Home Next
pg_freeresult Up pg_host
Site Menu

Amazon.ca
Amazon.com
Amazon.co.uk



Most recently updated on 11 May, 2003

Home / PHP / Manual / ...



Please feel free to contact us with any comments or suggestions
PHP Manual
PHP Wysardry

This site is hosted by Spaceports