Nextval

Поиск
Список
Период
Сортировка
От Zavier Sheran
Тема Nextval
Дата
Msg-id 20011012015510.73010.qmail@web14402.mail.yahoo.com
обсуждение исходный текст
Ответы Re: Nextval
Re: Nextval
Re: Nextval
Список pgsql-php
I try to do the following:

Fetch a SERIAL field (ie. record_id) and get the
highest value currently stored (ie. 1000), increment
the value by 1 and store a record that will have the
same value (1001) in record_id. So there must be a way
with concurrency control.

I went through the manuals and found the solution with
NEXTVAL('serial'), but you have to create a sequence
for that, and I don't know if it is the right way to
do for what I want.

It is my first PHP project involving a Database, so
it's a newbie question. Have mercy...

Thanks

__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

В списке pgsql-php по дате отправления:

Предыдущее
От: Gurudutt
Дата:
Сообщение: Re: PEAR Problem
Следующее
От: Marco Colombo
Дата:
Сообщение: Re: Nextval