Re: About referential integrity. - Mailing list pgsql-sql

From Josh Berkus
Subject Re: About referential integrity.
Date
Msg-id web-800781@davinci.ethosmedia.com
Whole thread Raw
In response to About referential integrity.  (BOURIAUD <david.bouriaud@ac-rouen.fr>)
List pgsql-sql
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 relationaldatabases, SQL-92 and/or SQL-99, do not work
thatway.
 

Longer Answer:  You can use:

SELECT * FROM t1 NATURAL JOIN t2;

... to get the functionality you are talking about (provided that theforiegn key reference has the same name in both
tables).

-Josh


pgsql-sql by date:

Previous
From: "Samuel J. Sutjiono"
Date:
Subject: Sort problem
Next
From: Oliver Elphick
Date:
Subject: Re: About referential integrity.