X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 612608B9B58 for ; Fri, 4 Feb 2005 14:38:32 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 18533-06 for ; Fri, 4 Feb 2005 14:38:24 +0000 (GMT) Received: from outland.mohawksoft.com (unknown [64.46.156.80]) by svr1.postgresql.org (Postfix) with ESMTP id 2D2D28B9B27 for ; Fri, 4 Feb 2005 14:38:26 +0000 (GMT) Received: (from mohawk@localhost) by outland.mohawksoft.com (8.11.6/8.11.6) id j14EeUE02108; Fri, 4 Feb 2005 09:40:30 -0500 From: markw@mohawksoft.com X-Authentication-Warning: outland.mohawksoft.com: mohawk set sender to markw@mohawksoft.com using -f Received: from 24.91.171.78 (SquirrelMail authenticated user markw) by mail.mohawksoft.com with HTTP; Fri, 4 Feb 2005 09:40:29 -0500 (EST) Message-ID: <16620.24.91.171.78.1107528029.squirrel@mail.mohawksoft.com> In-Reply-To: References: Date: Fri, 4 Feb 2005 09:40:29 -0500 (EST) Subject: Re: How to convert this mysql syntax To: vincent.richomme@ratp.fr Cc: pgsql-odbc@postgresql.org User-Agent: SquirrelMail/1.4.4-rc1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.282 tagged_above=0 required=5 tests=AWL, NO_REAL_NAME, UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200502/19 X-Sequence-Number: 4909 > 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))" ); > >