command copy and type char(x)

Поиск
Список
Период
Сортировка
От KOUL Christian
Тема command copy and type char(x)
Дата
Msg-id 3676129D.68259ED@message.fucam.ac.be
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: David Martinez Cuevas
Дата:
Сообщение: Re: [SQL] MINUS and slow 'not in'
Следующее
От: Postgres DBA
Дата:
Сообщение: CREATE RULE question