Re: How to convert this mysql syntax - Mailing list pgsql-odbc

From Merlin Moncure
Subject Re: How to convert this mysql syntax
Date
Msg-id 6EE64EF3AB31D5448D0007DD34EEB3412A7612@Herge.rcsinc.local
Whole thread Raw
In response to How to convert this mysql syntax  (vincent.richomme@ratp.fr)
List pgsql-odbc
> > > csSql += _T( "UserID     INTEGER    NOT NULL
> > > AUTO_INCREMENT,"    );
>
> csSql += _T( "UserID     SERIAL    NOT NULL,"    );
>
or,
csSql += _T( "UserID     SERIAL    PRIMARY KEY,"    );

Primary keys get the not null automatically.  Serial, by the way, is
just shorthand for defaulting the primary key to a value pulled from a
sequence.  It as a non standard extension just like AUTO_INCREMENT is,
but it is a *much* better abstraction of an incrementing key.

Merlin


pgsql-odbc by date:

Previous
From: Jeff Eckermann
Date:
Subject: Re: How to convert this mysql syntax
Next
From: "Marco Tamanti"
Date:
Subject: varchar problem after installing postgresql-8.0.1 on windows