Re: [INTERFACES] MSAccess and primary keys

Поиск
Список
Период
Сортировка
От Geoffrey C. Speicher
Тема Re: [INTERFACES] MSAccess and primary keys
Дата
Msg-id Pine.BSF.4.05.9905150915230.43429-100000@sirius.speicher.org
обсуждение исходный текст
Ответ на [INTERFACES] MSAccess and primary keys  (leif@danmos.dk)
Ответы Re: [INTERFACES] MSAccess and primary keys  (Ole Gjerde <gjerde@icebox.org>)
Список pgsql-interfaces
On Sat, 15 May 1999 leif@danmos.dk wrote:

> create table globalafvigelse 
>   (
>     id serial ,
>     startdato date,
>     slutdato date,
>     dagskema varchar(50),
>     primary key (globalafvigelse) 
>   );

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) );

Geoff



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

Предыдущее
От: Frans van Elsacker
Дата:
Сообщение: subscribe
Следующее
От: Michael J Davis
Дата:
Сообщение: RE: [INTERFACES] MSAccess and primary keys