how could a foreign key ever be NULL?

Поиск
Список
Период
Сортировка
От Terrence Brannon
Тема how could a foreign key ever be NULL?
Дата
Msg-id 8BBB36A0-F2E2-11D5-92F7-003065C2A10C@mac.com
обсуждение исходный текст
Ответ на Indices  (sharmad@goatelecom.com)
Ответы Re: how could a foreign key ever be NULL?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: how could a foreign key ever be NULL?  (Oliver Elphick <olly@lfix.co.uk>)
Re: how could a foreign key ever be NULL?  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Список pgsql-sql
The Momjian book states:

A single-column foreign key is either NULL or matches a primary key

But the problem I have with this statement is that a primary key 
cannot be null or duplicate. And since the foreign key references 
a value that is neither null or duplicate, how could it ever be 
NULL?



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

Предыдущее
От: Terrence Brannon
Дата:
Сообщение: Re: Numbering Rows (SEQUENCE, OID) questions
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: how could a foreign key ever be NULL?