Re: Match Full on foreign Key

Поиск
Список
Период
Сортировка
От ljb
Тема Re: Match Full on foreign Key
Дата
Msg-id b26mci$2sj7$1@news.hub.org
обсуждение исходный текст
Список pgsql-general
sl26@ukc.ac.uk wrote:
> I have defined the following foreign keys in a table:
>
> *********
> FOREIGN KEY (staff_login) REFERENCES staff (staff_login) MATCH FULL ON
> DELETE CASCADE ON UPDATE CASCADE,
>
>     FOREIGN KEY (module_code) REFERENCES module (module_code) MATCH FULL
> ON DELETE CASCADE ON UPDATE CASCADE,
> *********
>
> these two fields make the primary key of the table in which they are
> in.
>
> MATCH FULL will not allow one column of a multi-column foreign key to
> be NULL unless all foreign key columns are NULL...so:
>...

MATCH FULL is not relevant because you don't have multi-column foreign
keys. You have 2 single column foreign keys.

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

Предыдущее
От: Lee Harr
Дата:
Сообщение: Re: PostgreSQL x Oracle
Следующее
От: elein
Дата:
Сообщение: Re: PostgreSQL Mailing Lists in Italian?