Re: JOIN query not working as expected

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: JOIN query not working as expected
Дата
Msg-id 227.1133881351@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: JOIN query not working as expected  (Mario Splivalo <mario.splivalo@mobart.hr>)
Список pgsql-sql
Mario Splivalo <mario.splivalo@mobart.hr> writes:
> I can create a FK on a column wich allows NULL values, and I can even
> insert rows with NULLs in FK column, although PK table where FK is
> pointing does not allow nuls. Is that 'by design', or...?

It's per SQL spec.  Add a NOT NULL constraint to the column if you do
not wish to allow NULLs.
        regards, tom lane


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

Предыдущее
От: Mario Splivalo
Дата:
Сообщение: Re: JOIN query not working as expected
Следующее
От: "Lane Van Ingen"
Дата:
Сообщение: Re: Database with "override" tables