command copy and type char(x)

From: KOUL Christian <koul(at)message(dot)fucam(dot)ac(dot)be>
To: pgsql-sql(at)postgresql(dot)org
Subject: command copy and type char(x)
Date: 1998-12-15 07:41:17
Message-ID: 3676129D.68259ED@message.fucam.ac.be
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


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(at)message(dot)fucam(dot)ac(dot)be
Téléphone 00 32 65 666301.

Browse pgsql-sql by date

  From Date Subject
Next Message Postgres DBA 1998-12-15 08:02:54 CREATE RULE question
Previous Message David Martinez Cuevas 1998-12-15 02:24:24 Re: [SQL] MINUS and slow 'not in'