COPY tablename FROM and null values - Mailing list pgsql-sql

From ivan marchesini
Subject COPY tablename FROM and null values
Date
Msg-id 1143026331.4730.23.camel@geologia5.agora.ing.unipg.it
Whole thread Raw
Responses Re: COPY tablename FROM and null values
Re: COPY tablename FROM and null values
List pgsql-sql
Dear users,
I'm working on a Postgres 7.4 server

I have a .txt file, containing some tabular data, where data are
delimited by TABs.
there are 3 columns:

column1 int4, column2 float8, column3 float8

the problem is that column3 contains also null values (i.e. sometimes is
empty)

so when I try to use COPY tablename FROM 'filename.txt' I obtain an
error

I have tried also using " WITH NULL AS ' ' " but without good results...

can someone explain me how to solve this problem???

thank you very much

Ivan



-- 
Ivan Marchesini
Department of Civil and Environmental Engineering
University of Perugia
Via G. Duranti 93/a 
06125
Perugia (Italy)
e-mail: marchesini@unipg.it       ivan.marchesini@gmail.com
tel: +39(0)755853760
fax: +39(0)755853756
jabber: geoivan73@jabber.org





pgsql-sql by date:

Previous
From: Patrick JACQUOT
Date:
Subject: Re: Referential integrity broken (8.0.3), sub-select help
Next
From: Achilleus Mantzios
Date:
Subject: Re: COPY tablename FROM and null values