Multiple Primary Keys - Mailing list pgsql-general

From Isaías Cristiano Barroso
Subject Multiple Primary Keys
Date
Msg-id 002301c2bc97$fba87500$0c6aa8c0@unimedjm.com.br
Whole thread Raw
Responses Re: Multiple Primary Keys
Re: Multiple Primary Keys
List pgsql-general
Hi all,
 
How to create a table with multiple primary key?
I'm trying this manner but don't work.
 
CREATE TABLE A ( FIELD1 INT PRIMARY KEY, FIELD2 INT PRIMARY KEY);
 
and
 
CREATE TABLE A ( FIELD1 INT , FIELD2 INT , PRIMARY KEY(FIELD1, FIELD2);
 
But i've the following message:
 
ERROR: CREATE TABLE / PRIMARY KEY multiple primary keys for table 'A' are not allowed.
 
How to do?
 
Best Regards.
 
Isaías
 

pgsql-general by date:

Previous
From: Dave Cramer
Date:
Subject: Re: [JDBC] JDBC
Next
From: "Aurangzeb M. Agha"
Date:
Subject: Re: JDBC to PostgreSQL on Cygwin