From: KOUL Christian <koul@message.fucam.ac.be>
To: pgsql-sql@postgresql.org
Subject: command copy and type char(x)
Date: Tue, 15 Dec 1998 08:41:17 +0100
Message-ID: <3676129D.68259ED@message.fucam.ac.be> (raw)
Hello;
I have a file containing lines like the following one
0121,0000000209,000000207,0,001,1,0000000999,0000000999,0000000999,
When i use COPY my_table FROM the_file USING DELIMITERS ',' I am obliged
to create all columns of my_table as char(x).
If i want to make calculus with the fields of my table, How can i make
to tranform thoses fieds as integer or float in postgresSQL v6.4
Thanks.
--
Ir. Christian Koul.
Groupe Transport Mobilité - Fucam.
E-mail: koul@message.fucam.ac.be
Téléphone 00 32 65 666301.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: koul@message.fucam.ac.be
Subject: Re: command copy and type char(x)
In-Reply-To: <3676129D.68259ED@message.fucam.ac.be>
References: <3676129D.68259ED@message.fucam.ac.be>
* 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