help with COPY query

Поиск
Список
Период
Сортировка
От Elinor Medezinski
Тема help with COPY query
Дата
Msg-id 200402241628.28171.elinor@bellatrix.tau.ac.il
обсуждение исходный текст
Ответы Re: help with COPY query  (Bruno LEVEQUE <bruno.leveque@net6d.com>)
Re: help with COPY query  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
Hi,
I want to load a file containning a column of FLOATS, into a table of
INTEGERs.

I tried:
    COPY "Field" ("myintegers") from './myfloats.txt';
but got an error message:
    ERROR:  invalid input syntax for integer: "15.0"
    CONTEXT:  COPY Field, line 1, column WatchFreq: "15.0"
How can I go around this problem? is there any way to force copy to do the
right casting?

Thanks in advance,
Elinor

В списке pgsql-novice по дате отправления:

Предыдущее
От: "Bulatovic Natasa"
Дата:
Сообщение: PlPerl + sending emails from Postgres
Следующее
От: root
Дата:
Сообщение: Re: easy backup?