Referential integrity: broken rule?

Поиск
Список
Период
Сортировка
От Franz J Fortuny
Тема Referential integrity: broken rule?
Дата
Msg-id 013401c033b8$087d91e0$3167a8c0@chapur
обсуждение исходный текст
Ответы Re: Referential integrity: broken rule?  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Список pgsql-sql
This table:

create table things
( idthing integer not null, isthis boolean not null primary key(idthing,isthis)
....

)

would be referenced by this one:

create table forthings
( fromthing integer not null references things(idthing),

....

)

The above SHOULD NOT be accepted, since table "things" did not declare
idthing as UNIQUE. However, it IS accepted under PostgreSQL (7.0.2).

Am I wrong?

Best regards,

F J Fortuny




В списке pgsql-sql по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: SQL to retrieve foreign keys
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Referential integrity: broken rule?