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 0EC288BA001 for ; Fri, 4 Feb 2005 14:49:59 +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 19231-05 for ; Fri, 4 Feb 2005 14:49:49 +0000 (GMT) Received: from web20828.mail.yahoo.com (web20828.mail.yahoo.com [216.136.227.167]) by svr1.postgresql.org (Postfix) with SMTP id 3E2DD8B9F0F for ; Fri, 4 Feb 2005 14:49:49 +0000 (GMT) Received: (qmail 73604 invoked by uid 60001); 4 Feb 2005 14:49:49 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=u5a+Ix9mDu9ZfnvNIB+PU0TnWA6OFWW4qLWXWAi2MmUFbpMNMGGTTTxgRdf16oCaTmEzEnC3OL8QycqziEhk7s9xTFQ4fSh9edC279EN85Dg3QnIxSDzAFaJlz2YL6gfbBVT5MCjC/AgFk++Gse28jjTQ9mfh0zGE3Aid8PEqus= ; Message-ID: <20050204144949.73602.qmail@web20828.mail.yahoo.com> Received: from [24.248.12.141] by web20828.mail.yahoo.com via HTTP; Fri, 04 Feb 2005 06:49:49 PST Date: Fri, 4 Feb 2005 06:49:49 -0800 (PST) From: Jeff Eckermann Subject: Re: How to convert this mysql syntax To: vincent.richomme@ratp.fr Cc: pgsql-odbc@postgresql.org In-Reply-To: <16620.24.91.171.78.1107528029.squirrel@mail.mohawksoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.491 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200502/20 X-Sequence-Number: 4910 --- 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