Re: ResultSetMetaData in PHP?

From: David Stanaway <david(at)stanaway(dot)net>
To: Zhidian Du <zdu(at)cs(dot)nmsu(dot)edu>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: ResultSetMetaData in PHP?
Date: 2002-08-29 04:05:19
Message-ID: 1030593919.22999.25.camel@ciderbox
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Keary Suska 2002-08-29 05:37:33 Re: Where can I get error messages?
Previous Message dr_sad(surguttel) 2002-08-29 03:57:34 Re: Where can I get error messages?