Re: [INTERFACES] MSAccess and primary keys - Mailing list pgsql-interfaces

From Geoffrey C. Speicher
Subject Re: [INTERFACES] MSAccess and primary keys
Date
Msg-id Pine.BSF.4.05.9905150915230.43429-100000@sirius.speicher.org
Whole thread Raw
In response to [INTERFACES] MSAccess and primary keys  (leif@danmos.dk)
Responses Re: [INTERFACES] MSAccess and primary keys
List 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 by date:

Previous
From: Frans van Elsacker
Date:
Subject: subscribe
Next
From: Michael J Davis
Date:
Subject: RE: [INTERFACES] MSAccess and primary keys