command copy and type char(x) - Mailing list pgsql-sql

From KOUL Christian
Subject command copy and type char(x)
Date
Msg-id 3676129D.68259ED@message.fucam.ac.be
Whole thread Raw
List 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@message.fucam.ac.be
Téléphone         00 32 65 666301.



pgsql-sql by date:

Previous
From: David Martinez Cuevas
Date:
Subject: Re: [SQL] MINUS and slow 'not in'
Next
From: Postgres DBA
Date:
Subject: CREATE RULE question