Re: Trying to load MySQL data

From: Walter Vaughan <wvaughan(at)steelerubber(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Trying to load MySQL data
Date: 2007-01-10 21:52:41
Message-ID: 45A56029.10005@steelerubber.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

garrettmoore(at)gmail(dot)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 dunno, but unless you don't really care about your data, I'd use something
that you have no chance of in your data. Things like | and ~ are pretty standard
field separators.

So you'd use things like FIELDS TERMINATED BY '|' in your MySQL export
and WITH DELIMITER '|' NULL '' in your postgresql import

Also remember that mySQL nulls are nothing like postgresql nulls.

--
Walter

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Broersma Jr 2007-01-10 22:31:41 Re: Problems With VIEWS
Previous Message Jonathan Hedstrom 2007-01-10 21:45:23 Re: remove embedded carriage returns