Re: Best import approach? Delimiters in strings

Поиск
Список
Период
Сортировка
От Bret Stern
Тема Re: Best import approach? Delimiters in strings
Дата
Msg-id 1361035729.2131.3.camel@fedora13
обсуждение исходный текст
Ответ на Best import approach? Delimiters in strings  (Andrew Taylor <andydtaylor@gmail.com>)
Список pgsql-general
The first value seems more suspect, should be "490015496GW". Mixing
numeric and string values is best enclosed in quotes.


"Golders Green, Golders Green, stop GW" is normal if you want the
entire string between the quotes to arrive in a single column (with
the comma).




On Sat, 2013-02-16 at 17:02 +0000, Andrew Taylor wrote:
> Hi,
>
>
> A bulk import (script attached) is failing.
>
>
> Error message:
> psql:/home/andyt/projects/django-stringer/txc/stops_inport.txt:86:
> ERROR:  invalid input syntax for type double precision: "stop_lat"
>
>
> I think the reason may be a delimiters in strings such as "Golders
> Green, Golders Green, stop GW"
>
>
> 490015496GW,"Golders Green, Golders Green, stop GW",,51.57207,-0.19549
>
>
> What's a good way to handle this?
>
>
> Thanks,
>
>
> Andy

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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Best import approach? Delimiters in strings
Следующее
От: Andrew Taylor
Дата:
Сообщение: Re: Best import approach? Delimiters in strings