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

From Ole Gjerde
Subject Re: [INTERFACES] MSAccess and primary keys
Date
Msg-id Pine.LNX.4.05.9905160053140.21568-100000@snowman.icebox.org
Whole thread Raw
In response to Re: [INTERFACES] MSAccess and primary keys  ("Geoffrey C. Speicher" <geoff@sirius.trassociates.com>)
List 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 by date:

Previous
From: Ole Gjerde
Date:
Subject: Re: [INTERFACES] Re: [sql] mysql vs. postgresql
Next
From: "Alf Lewerken"
Date:
Subject: Re: [INTERFACES] libpq++ and arrays?