Re: [INTERFACES] MSAccess and primary keys

Поиск
Список
Период
Сортировка
От Ole Gjerde
Тема Re: [INTERFACES] MSAccess and primary keys
Дата
Msg-id Pine.LNX.4.05.9905160053140.21568-100000@snowman.icebox.org
обсуждение исходный текст
Ответ на Re: [INTERFACES] MSAccess and primary keys  ("Geoffrey C. Speicher" <geoff@sirius.trassociates.com>)
Список pgsql-interfaces
On Sat, 15 May 1999, Geoffrey C. Speicher wrote:
> You're misusing the PRIMARY KEY constraint; you're supposed to give it a
> list of attributes which function as the primary key for the table.  I'm
> surprised that was accepted at all.  I think what you want is:
> create table globalafvigelse
>   (
>      id serial,
>      ...
>      primary key (serial)
>   );

primary key(id) you mean? :)

The serial datatype automatically makes the field a primary key, so that
would be unnecessary anyway.

Ole Gjerde




В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Ole Gjerde
Дата:
Сообщение: Re: [INTERFACES] Re: [sql] mysql vs. postgresql
Следующее
От: "Alf Lewerken"
Дата:
Сообщение: Re: [INTERFACES] libpq++ and arrays?