Re: primary + foreign key

From: Huub <v(dot)niekerk(at)freeler(dot)nl>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: primary + foreign key
Date: 2002-12-12 09:02:28
Message-ID: at9jbk$1q3g$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,

I suppose 'detail' is the table name? And what is master?

Thanks

Huub
> create table detail
> (
> id1 integer,
> id2 integer,
> CONSTRAINT c1 PRIMARY KEY(id1,id2),
> CONSTRAINT c2 FOREIGN KEY(id1,id2) REFERENCES master
> );
>
> Do you really need such detail table? You can just add columns to master
> table.
>
> Tomasz Myrta
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tomasz Myrta 2002-12-12 09:52:19 Re: primary + foreign key
Previous Message Tomasz Myrta 2002-12-12 08:54:25 Re: primary + foreign key