From: Huub <v.niekerk@freeler.nl>
To: pgsql-sql@postgresql.org
Subject: Re: primary + foreign key
Date: Thu, 12 Dec 2002 10:02:28 +0100
Message-ID: <at9jbk$1q3g$1@news.hub.org> (raw)
In-Reply-To: <3DF84EC1.2020506@klaster.net>
References: <3DF84EC1.2020506@klaster.net>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: v.niekerk@freeler.nl
Subject: Re: primary + foreign key
In-Reply-To: <at9jbk$1q3g$1@news.hub.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox