importing into postgres

From: Kevin Heflin <kheflin(at)shreve(dot)net>
To: "PGSQL-General (E-mail)" <pgsql-general(at)postgreSQL(dot)org>
Subject: importing into postgres
Date: 1998-07-23 18:44:16
Message-ID: Pine.LNX.3.96.980723133756.3905C-100000@mercury.shreve.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


I'm using the IMPORT Table feature of pgaccess to import a .txt file.
I've done this before and usually have no problems..

The table I'm importing into however has a field which I intended to be an
auto numbering field.. INT DEFAULT nextval('team_id') and I have a
sequence of team_id

however when I try to import my .txt file, I can't leave the "team_id"
blank, it complains because it can't be a NULL value.. I can't manually
insert a number in the .txt file either.

I was hoping to import these items then just run update.. to get my
'team_id'

I also tried adding nextval('team_id') in my .txt file for that field no
luck.

any suggestions?

Kevin
--------------------------------------------------------------------
Kevin Heflin | ShreveNet, Inc. | Ph:318.222.2638 x103
VP/Mac Tech | 333 Texas St #619 | FAX:318.221.6612
kheflin(at)shreve(dot)net | Shreveport, LA 71101 | http://www.shreve.net
--------------------------------------------------------------------

In response to

Browse pgsql-general by date

  From Date Subject
Next Message The Hermit Hacker 1998-07-23 18:49:49 Re: [GENERAL] Re: [MIRRORS] Revamp'd Web Site...
Previous Message Matthew Boyce 1998-07-23 18:11:04 help