Re: How to convert this mysql syntax

From: markw(at)mohawksoft(dot)com
To: vincent(dot)richomme(at)ratp(dot)fr
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: How to convert this mysql syntax
Date: 2005-02-04 14:40:29
Message-ID: 16620.24.91.171.78.1107528029.squirrel@mail.mohawksoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

> 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))" );
>
>

In response to

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Jeff Eckermann 2005-02-04 14:49:49 Re: How to convert this mysql syntax
Previous Message vincent.richomme 2005-02-04 12:49:50 How to convert this mysql syntax