| От | Guillaume Perréal |
|---|---|
| Тема | Re: Can't copy from file into table |
| Дата | |
| Msg-id | 398983AF.7D369048@lyon.cemagref.fr обсуждение исходный текст |
| Ответ на | Can't copy from file into table (<database@gurubase.com>) |
| Список | pgsql-general |
database@gurubase.com wrote:
>
> Dear all,
>
> I am using
> copy tableA from '/tmp/A.data' and have the following error:
>
> Unable to identify an operatior '=' for types 'varchar'
> You will have to retype this query using an explicit cast.
>
> What is "an explicit cast"?
Something like this:
SELECT '0.80'::float;
The '::float' tell Postgresql to cast '0.80' (a string) in to a real number
(float).
But you can't use an explicit cast in your query. I think the problem comes out
of your table definition.
>
> Best regards,
> Boris
--
Guillaume Perréal - Stagiaire MIAG
Cemagref (URH), Lyon, France
Tél: (+33) 4.72.20.87.64
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера