From: Joachim Trinkwitz <jtr@uni-bonn.de>
To: pgsql-sql@postgresql.org
Subject: Re: retrieving a serial number
Date: 02 Jul 2000 14:28:57 +0200
Message-ID: <87puowzpfa.fsf@wabe.in-bonn.de> (raw)
References: <C0E5077572DCD211812B00A0C95A0A1F03A934F7@ntexch01>
<00062816190002.00209@comptechnews>
"Robert B. Easter" <reaster@comptechnews.com> writes:
> You can do something like this:
> $var = SELECT nextval('seq_name');
> INSERT INTO master (id, ...) VALUES ($var, ...);
> INSERT INTO slave1 (id, ...) VALUES ($var, ...);
Great feaure. What to do when importing some previous data from ascii
files -- can you automatically give a serial number in this way to?
Thanks in advance,
joachim
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: jtr@uni-bonn.de
Subject: Re: retrieving a serial number
In-Reply-To: <87puowzpfa.fsf@wabe.in-bonn.de>
References: <C0E5077572DCD211812B00A0C95A0A1F03A934F7@ntexch01> <00062816190002.00209@comptechnews> <87puowzpfa.fsf@wabe.in-bonn.de>
* 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