Re: [ADMIN] mysql to pgsql

From: "Ross J(dot) Reedstrom" <reedstrm(at)wallace(dot)ece(dot)rice(dot)edu>
To: Nikolay Mijaylov <nmmm(at)nmmm(dot)nu>
Cc: Bob Zoller <bob(at)helpermonkey(dot)org>, pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] mysql to pgsql
Date: 2000-02-18 18:13:05
Message-ID: 20000218121305.B12742@rice.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

One correction:

On Fri, Feb 18, 2000 at 11:23:49AM +0200, Nikolay Mijaylov wrote:
> Hya
>
> Remove all Mysql comments, unfortunately pg, cant support
> comments,
> they begins with # if i not mistake

pgsql supports SQL standard comments. A comment is introduced by the
token --, and ends at the next newline. I have many sql script files
that look like:

create table testit ( -- this is a test table
f1 int, -- this is a test integer
f2 real, -- this is a real, or float
f3 text -- this is a variable length text element
);

Ross
--
Ross J. Reedstrom, Ph.D., <reedstrm(at)rice(dot)edu>
NSBRI Research Scientist/Programmer
Computer and Information Technology Institute
Rice University, 6100 S. Main St., Houston, TX 77005

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Daniele Medri 2000-02-18 18:13:44 Postgresql Limits with PHP query
Previous Message Dirk Heinrichs 2000-02-18 17:40:25 Re: [ADMIN] mysql to pgsql