Re: copy from

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
Subject: Re: copy from
Date: 2000-08-15 16:34:21
Message-ID: Pine.BSF.4.10.10008150933170.86366-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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?

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Adam Lang 2000-08-15 16:38:15 Re: copy from
Previous Message Stephan Szabo 2000-08-15 16:32:33 Re: My Indices doesn't work