From: Josh Berkus <josh@agliodbs.com>
To: BOURIAUD <david.bouriaud@ac-rouen.fr>
To: pgsql-sql@postgresql.org
Subject: Re: About referential integrity.
Date: Mon, 25 Feb 2002 09:21:38 -0800
Message-ID: <web-800781@davinci.ethosmedia.com> (raw)
In-Reply-To: <200202251503.g1PF3vn21366@necker.ac-rouen.fr>
David,
> Anyway, I don't understand why when tables are built with this
> referential
> integrity the back-end doesn't fullfill any request posted on those
> tables.
Short answer: Because the international specifications for relational
databases, SQL-92 and/or SQL-99, do not work that way.
Longer Answer: You can use:
SELECT * FROM t1 NATURAL JOIN t2;
... to get the functionality you are talking about (provided that the
foriegn key reference has the same name in both tables).
-Josh
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: josh@agliodbs.com, david.bouriaud@ac-rouen.fr
Subject: Re: About referential integrity.
In-Reply-To: <web-800781@davinci.ethosmedia.com>
* 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