From: Adam Lang <aalang@rutgersinsurance.com>
To: pgsql-php@postgresql.org
Subject: Re: Nextval
Date: Tue, 16 Oct 2001 08:50:57 -0400
Message-ID: <001d01c15641$333bbae0$330a0a0a@rutgersinsurance.com> (raw)
References: <web-146731@davinci.ethosmedia.com>
Ummm... no. Cross posting is a BAD thing. Post to one list and if you
don't get an answer there, then post to another list.
Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
http://www.rutgersinsurance.com
----- Original Message -----
From: "Josh Berkus" <josh@agliodbs.com>
To: "Zavier Sheran" <zsheran@yahoo.com>; <pgsql-php@postgresql.org>
Sent: Friday, October 12, 2001 12:49 PM
Subject: Re: [PHP] Nextval
> Zavier,
>
> In the future, cross-post this sort of request to pgsql-novice. More of
> us DB Engine / Query Parser developers subscribe to that list than this
> one.
>
> > 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.
>
> Well, that depends on what you want to do, don't it? How about
> describing what you're trying to accomplish rather than making us guess?
> :-)
>
> -Josh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: aalang@rutgersinsurance.com
Subject: Re: Nextval
In-Reply-To: <001d01c15641$333bbae0$330a0a0a@rutgersinsurance.com>
References: <web-146731@davinci.ethosmedia.com> <001d01c15641$333bbae0$330a0a0a@rutgersinsurance.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox