Re: About referential integrity.

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: About referential integrity.
Дата
Msg-id web-800781@davinci.ethosmedia.com
обсуждение исходный текст
Ответ на About referential integrity.  (BOURIAUD <david.bouriaud@ac-rouen.fr>)
Список 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 по дате отправления:

Предыдущее
От: "Samuel J. Sutjiono"
Дата:
Сообщение: Sort problem
Следующее
От: Oliver Elphick
Дата:
Сообщение: Re: About referential integrity.