Re: How to convert this mysql syntax

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: How to convert this mysql syntax
Дата
Msg-id 6EE64EF3AB31D5448D0007DD34EEB3412A7612@Herge.rcsinc.local
обсуждение исходный текст
Ответ на How to convert this mysql syntax  (vincent.richomme@ratp.fr)
Список 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 по дате отправления:

Предыдущее
От: Jeff Eckermann
Дата:
Сообщение: Re: How to convert this mysql syntax
Следующее
От: "Marco Tamanti"
Дата:
Сообщение: varchar problem after installing postgresql-8.0.1 on windows