Re: copy from
От | Adam Lang |
---|---|
Тема | Re: copy from |
Дата | |
Msg-id | 00dd01c006d7$35a1b7e0$330a0a0a@Adam обсуждение исходный текст |
Ответ на | copy from ("Adam Lang" <aalang@rutgersinsurance.com>) |
Ответы |
Re: copy from
|
Список | 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 по дате отправления: