From: ivan marchesini <marchesini@unipg.it>
To: pgsql-sql@postgresql.org
Subject: COPY tablename FROM and null values
Date: Wed, 22 Mar 2006 12:18:51 +0100
Message-ID: <1143026331.4730.23.camel@geologia5.agora.ing.unipg.it> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: marchesini@unipg.it
Subject: Re: COPY tablename FROM and null values
In-Reply-To: <1143026331.4730.23.camel@geologia5.agora.ing.unipg.it>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox