Re: two primairy key in one table ?

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Angela Luyf <a(dot)c(dot)luyf(at)amc(dot)uva(dot)nl>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: two primairy key in one table ?
Date: 2002-07-05 17:07:09
Message-ID: 20020705100233.X27855-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Thu, 4 Jul 2002, Angela Luyf wrote:

> Hello,
> I have a database model where a many to many relation is used, so i need
> to create a table with two primary key. Don't know how to solve this in
> postgress, can't find it in the tutorials, so can anybody help me with
> this ?

You can't have multiple primary keys in a table (per SQL spec) but are
you sure that's what you want as opposed to a single key made of two
columns?

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2002-07-05 17:12:59 Re: explicit cast error
Previous Message Francisco J Reyes 2002-07-05 16:57:20 Re: