Re: can't read SQL dump from MySQL

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Andreas Jerke <info(at)vrdesign(dot)de>
Cc: Pgsql-General <pgsql-general(at)hub(dot)org>
Subject: Re: can't read SQL dump from MySQL
Date: 2000-09-11 16:30:14
Message-ID: Pine.BSF.4.10.10009110928240.11606-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 11 Sep 2000, Andreas Jerke wrote:

> Hi,
>
> I'm updating from MySQL to PostgrSQL. Therefor I use
> the mysqldump tool for exporting CREATE and INSERT statements
> from all tables and rows.
>
> When I try to import the SQL file into PostgreSQL with
> psql --> \i filename
>
> I get the following error:
>
> line 17:parser: parse error at or near "("
>
> My SQL statement:
>
> <schnipp>
>
> 1 CREATE TABLE Adresse (
> 2 pid_adresse int(11) DEFAULT '0' NOT NULL auto_increment,
> 3 id_person int(11) DEFAULT '0' NOT NULL,
> 4 PLZ varchar(50),
> 5 id_ort int(11) DEFAULT '0',
> 6 strasse varchar(50),
> 7 id_postcode int(11),
> 8 hausnummer int(11),
> 9 zusatz varchar(25),
> 10 postfach varchar(20),
> 11 leitcode varchar(18),
> 12 strassen_code char(3),
> 13 FZ char(3),
> 14 adresszusatz varchar(50),
> 15 PRIMARY KEY (pid_adresse),
> 16 KEY id_person (id_person)
> 17 );

It's probably complaining about the
KEY id_person (id_person)
line since I don't think that's a
standard syntax or at least it doesn't
look like syntax postgres understands.
What's the intent behind the line?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2000-09-11 16:37:42 Re: Removing all NOT NULL constraints from multiple tables easily
Previous Message Stephan Szabo 2000-09-11 16:28:05 Re: problems with GRANT on Solaris 8