Re: ResultSetMetaData in PHP? - Mailing list pgsql-php

From David Stanaway
Subject Re: ResultSetMetaData in PHP?
Date
Msg-id 1030593919.22999.25.camel@ciderbox
Whole thread Raw
In response to ResultSetMetaData in PHP?  (Zhidian Du <zdu@cs.nmsu.edu>)
List pgsql-php
On Tue, 2002-08-27 at 20:21, Zhidian Du wrote:
> I am just use PHP.  I have two questions:
>
> 1. When I use OID, how can I get a current OID and lock it and use it
> before I insert a record, as nextval(..) does, in PHP?

I am not sure that you can get this in advance, but you can get the oid
after an insert/update.

http://www.php.net/manual/en/function.pg-last-oid.php
for PHP 4 >= 4.2.0

otherwise: pg_getlastoid()

See:
http://www.php.net/manual/en/ref.pgsql.php


--
David Stanaway

pgsql-php by date:

Previous
From: "dr_sad(surguttel)"
Date:
Subject: Re: Where can I get error messages?
Next
From: Keary Suska
Date:
Subject: Re: Where can I get error messages?