pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Eckermann <jeff_eckermann@yahoo.com>
To: vincent.richomme@ratp.fr
Cc: pgsql-odbc@postgresql.org
Subject: Re: How to convert this mysql syntax
Date: Fri, 4 Feb 2005 06:49:49 -0800 (PST)
Message-ID: <20050204144949.73602.qmail@web20828.mail.yahoo.com> (raw)
In-Reply-To: <16620.24.91.171.78.1107528029.squirrel@mail.mohawksoft.com>

--- markw@mohawksoft.com wrote:

> > 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( "UserID     SERIAL    NOT NULL,"    );

> >
> > csSql += _T( "Time       DATETIME  NOT NULL,"  );

csSql += _T( "Time       TIMESTAMP  NOT NULL,"  );

> >
> > csSql += _T( "NumSerie   INTEGER    NOT NULL," );
> >
> > csTmp.Format( "%s VARCHAR(64),", im->first );
> >
> > csSql += _T( "PRIMARY KEY(UserID))" );

http://www.postgresql.org/docs/8.0/interactive/datatype.html

> >
> >
> 
> 
> ---------------------------(end of
> broadcast)---------------------------
> TIP 2: you can get off all lists at once with the
> unregister command
>     (send "unregister YourEmailAddressHere" to
> majordomo@postgresql.org)
> 



		
__________________________________ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 



view thread (4+ messages)  latest in thread

Message-ID: <20050204144949.73602.qmail@web20828.mail.yahoo.com>
Permalink:  ../20050204144949.73602.qmail@web20828.mail.yahoo.com/
Also on:    postgresql.org/message-id/20050204144949.73602.qmail@web20828.mail.yahoo.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: jeff_eckermann@yahoo.com, vincent.richomme@ratp.fr
  Subject: Re: How to convert this mysql syntax
  In-Reply-To: <20050204144949.73602.qmail@web20828.mail.yahoo.com>
  References: <16620.24.91.171.78.1107528029.squirrel@mail.mohawksoft.com> <20050204144949.73602.qmail@web20828.mail.yahoo.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