Re: Multiple Primary Keys

From: Isaías Cristiano Barroso <isaias(at)unimedjm(dot)com(dot)br>
To: "Manfred Koizar" <mkoi-pg(at)aon(dot)at>, <pgsql-general(at)postgresql(dot)org>, <aledes(at)telefonica(dot)net>
Subject: Re: Multiple Primary Keys
Date: 2003-01-15 15:10:25
Message-ID: 001f01c2bca8$3bc21d20$0c6aa8c0@unimedjm.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks all by response.

Isaias
----- Original Message -----
From: "Manfred Koizar" <mkoi-pg(at)aon(dot)at>
To: "Isaías Cristiano Barroso" <isaias(at)unimedjm(dot)com(dot)br>
Cc: <pgsql-general(at)postgresql(dot)org>
Sent: Wednesday, January 15, 2003 1:00 PM
Subject: Re: [GENERAL] Multiple Primary Keys

> On Wed, 15 Jan 2003 11:14:04 -0200, Isaías Cristiano Barroso
<isaias(at)unimedjm(dot)com(dot)br>
> wrote:
> >CREATE TABLE A ( FIELD1 INT PRIMARY KEY, FIELD2 INT PRIMARY KEY);
> >ERROR: CREATE TABLE / PRIMARY KEY multiple primary keys for table 'A' are
not allowed.
>
> The error message says it all.
>
> >CREATE TABLE A ( FIELD1 INT , FIELD2 INT , PRIMARY KEY(FIELD1, FIELD2);
> ^
> This should work, if you add a ) here --------------------------------+
>
> Servus
> Manfred
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gregory Seidman 2003-01-15 15:16:53 last word in text
Previous Message Tom Lane 2003-01-15 15:04:24 Re: Multiple Primary Keys