pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: markw@mohawksoft.com
To: vincent.richomme@ratp.fr
Cc: pgsql-odbc@postgresql.org
Subject: Re: How to convert this mysql syntax
Date: Fri, 4 Feb 2005 09:40:29 -0500 (EST)
Message-ID: <16620.24.91.171.78.1107528029.squirrel@mail.mohawksoft.com> (raw)
In-Reply-To: <E23B4EE4F2A6F44B8660AA8723D0B82B012E18BC@nyplme19.neuilly.ratp>
References: <E23B4EE4F2A6F44B8660AA8723D0B82B012E18BC@nyplme19.neuilly.ratp>

> I thought that SQL was nomalized but when I tried this wmysql code

SQL is mostly normalized, but every database seems to bring in its own
incompatibilities.
>
> With PostGreSQL it doesn't work.

It is probably a MySQL extension.

>
>
>
>
>
> //Select database
>
>
>
> m_pDb.Execute( "USE dbBornes;" );

Try:
m_pDb.Execute( "connect dbBornes;" );

>
>
>
> // Create table
>
> csSql.Format( "CREATE TABLE %s(", m_DbTable );
>
> csSql += _T( "UserID     INTEGER    NOT NULL AUTO_INCREMENT,"    );
>
> csSql += _T( "Time       DATETIME  NOT NULL,"  );
>
> csSql += _T( "NumSerie   INTEGER    NOT NULL," );
>
> csTmp.Format( "%s VARCHAR(64),", im->first );
>
> csSql += _T( "PRIMARY KEY(UserID))" );
>
>




view thread (4+ messages)  latest in thread

Message-ID: <16620.24.91.171.78.1107528029.squirrel@mail.mohawksoft.com>
Permalink:  ../16620.24.91.171.78.1107528029.squirrel@mail.mohawksoft.com/
Also on:    postgresql.org/message-id/16620.24.91.171.78.1107528029.squirrel@mail.mohawksoft.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: markw@mohawksoft.com, vincent.richomme@ratp.fr
  Subject: Re: How to convert this mysql syntax
  In-Reply-To: <16620.24.91.171.78.1107528029.squirrel@mail.mohawksoft.com>
  References: <E23B4EE4F2A6F44B8660AA8723D0B82B012E18BC@nyplme19.neuilly.ratp> <16620.24.91.171.78.1107528029.squirrel@mail.mohawksoft.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox