Re: ResultSetMetaData in PHP?

Поиск
Список
Период
Сортировка
От David Stanaway
Тема Re: ResultSetMetaData in PHP?
Дата
Msg-id 1030593919.22999.25.camel@ciderbox
обсуждение исходный текст
Ответ на ResultSetMetaData in PHP?  (Zhidian Du <zdu@cs.nmsu.edu>)
Список 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 по дате отправления:

Предыдущее
От: "dr_sad(surguttel)"
Дата:
Сообщение: Re: Where can I get error messages?
Следующее
От: Keary Suska
Дата:
Сообщение: Re: Where can I get error messages?