pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adam Lang <aalang@rutgersinsurance.com>
To: pgsql-sql@postgresql.org
Subject: Re: copy from
Date: Tue, 15 Aug 2000 12:38:15 -0400
Message-ID: <00dd01c006d7$35a1b7e0$330a0a0a@Adam> (raw)
References: <Pine.BSF.4.10.10008150933170.86366-100000@megazone23.bigpanda.com>

Hmmm... well, I don't think I have an "explicit" nextval.  I created the
table and then I did a create sequence broker_id;

Are you implying that I can set the field to automatically create a nextval?

Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
----- Original Message -----
From: "Stephan Szabo" <sszabo@megazone23.bigpanda.com>
To: "Adam Lang" <aalang@rutgersinsurance.com>
Cc: <pgsql-sql@postgresql.org>
Sent: Tuesday, August 15, 2000 12:34 PM
Subject: Re: [SQL] copy from


> Well, if you define your main table to have a serial, or an explicit
> default nextval(seqid), you won't even need to do that.  Just leave
> the column off the insert list and the default should fill it for you.
>
> Stephan Szabo
> sszabo@bigpanda.com
>
> On Tue, 15 Aug 2000, Adam Lang wrote:
>
> > I get it.  I upload to the temp table, then for the select/insert I just
do
> > the nextval(seq_id) for the primary key field, correct?




view thread (7+ messages)  latest in thread

Message-ID: <00dd01c006d7$35a1b7e0$330a0a0a@Adam>
Permalink:  ../00dd01c006d7$35a1b7e0$330a0a0a@Adam/
Also on:    postgresql.org/message-id/00dd01c006d7$35a1b7e0$330a0a0a@Adam

 · 

reply

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: aalang@rutgersinsurance.com
  Subject: Re: copy from
  In-Reply-To: <00dd01c006d7$35a1b7e0$330a0a0a@Adam>
  References: <Pine.BSF.4.10.10008150933170.86366-100000@megazone23.bigpanda.com> <00dd01c006d7$35a1b7e0$330a0a0a@Adam>

* 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