From: | "Adam Lang" <aalang(at)rutgersinsurance(dot)com> |
---|---|
To: | <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: copy from |
Date: | 2000-08-15 16:38:15 |
Message-ID: | 00dd01c006d7$35a1b7e0$330a0a0a@Adam |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)megazone23(dot)bigpanda(dot)com>
To: "Adam Lang" <aalang(at)rutgersinsurance(dot)com>
Cc: <pgsql-sql(at)postgresql(dot)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(at)bigpanda(dot)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?
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Swan | 2000-08-15 16:43:51 | Re: Functions with Null Arguments? |
Previous Message | Stephan Szabo | 2000-08-15 16:34:21 | Re: copy from |