Re: [INTERFACES] MSAccess and primary keys

From: Ole Gjerde <gjerde(at)icebox(dot)org>
To: "Geoffrey C(dot) Speicher" <geoff(at)sirius(dot)trassociates(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: [INTERFACES] MSAccess and primary keys
Date: 1999-05-16 05:54:42
Message-ID: Pine.LNX.4.05.9905160053140.21568-100000@snowman.icebox.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Alf Lewerken 1999-05-16 08:19:14 Re: [INTERFACES] libpq++ and arrays?
Previous Message Ole Gjerde 1999-05-16 05:50:45 Re: [INTERFACES] Re: [sql] mysql vs. postgresql