Re: copy from - Mailing list pgsql-sql

From Adam Lang
Subject Re: copy from
Date
Msg-id 00dd01c006d7$35a1b7e0$330a0a0a@Adam
Whole thread Raw
In response to copy from  ("Adam Lang" <aalang@rutgersinsurance.com>)
Responses Re: copy from
List pgsql-sql
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?



pgsql-sql by date:

Previous
From: "Adam Lang"
Date:
Subject: Re: 8K Limit, whats the best strategy?
Next
From: Jie Liang
Date:
Subject: PL/pgSQL