Re: Trying to load MySQL data

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Trying to load MySQL data
Дата
Msg-id 1168459721.20602.194.camel@state.g2switchworks.com
обсуждение исходный текст
Ответ на Trying to load MySQL data  ("garrettmoore@gmail.com" <garrettmoore@gmail.com>)
Список pgsql-general
On Tue, 2007-01-09 at 19:54, garrettmoore@gmail.com wrote:
> Hello,
>
> I am working on a project where we are converting from MySQL to
> Postgres. I figured the easiest way would be to export the MySQL data
> as CSV.
>
> I'm having a problem importing some of the data. What I have done is
> exported the MySQL data and then modified it so that all single quotes
> (a ' quote) are doubled, and null values are replaced with an empty
> value in the CSV.
>
> Our data, for example, looks like this:
>
> 2628,'Poster,5,'255.255.18.138',,'[quote=gz]I''m curious, why not allow
> users, then to freely edit topics?[/quote]
> We could either go with "it''s a minor annoyance that is one measure
> that helps keep DB load lower," or "we do it just to piss you off."
> You choose.',0,1124498148,,,376,0,0,,

If that is indeed the line, then this part:

2628,'Poster,5,'255.255.18.138',

is misformed.

I'm assuming you really need:

2628,'Poster',5,'255.255.18.138',

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

Предыдущее
От: kmohan
Дата:
Сообщение: Export to shape file
Следующее
От: Erik Jones
Дата:
Сообщение: Re: How does one perform a case-insenstive query on test