From: jdassen@cistron.nl
To: pgsql-sql@postgresql.org
Subject: Re: creating "job numbers"
Date: Thu, 22 Mar 2001 13:41:02 +0000 (UTC)
Message-ID: <slrn9bk07e.v22.jdassen@odin.cistron-office.nl> (raw)
References: <200103221311.f2MDB0t56270@mail.postgresql.org>
postgresql <pgsql@symcom.com> wrote:
>I can not first ask with the number will be, and asking for the previous
>oid after the fact can also lead to the same problem.
If you use sequences and the currval() and nextval() functions, you can. See
e.g. http://www.postgresql.org/docs/aw_pgsql_book/node85.html .
HTH,
Ray
--
"a infinite number of monkeys typing into GNU emacs would never make a good
program"
.../linux/Documentation/CodingStyle
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-sql@postgresql.org
Cc: jdassen@cistron.nl
Subject: Re: creating "job numbers"
In-Reply-To: <slrn9bk07e.v22.jdassen@odin.cistron-office.nl>
References: <200103221311.f2MDB0t56270@mail.postgresql.org> <slrn9bk07e.v22.jdassen@odin.cistron-office.nl>
* 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