Re: FK issue

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: FK issue
Дата
Msg-id 20040610094505.J20240@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Re: FK issue  (mike <mike@bristolreccc.co.uk>)
Список pgsql-general
On Thu, 10 Jun 2004, mike wrote:

> On Thu, 2004-06-10 at 17:03, Uwe C. Schroeder wrote:
> > Try to add a null value to lk_sub_con.type - or any value that's not in
> > lk_sort_of_contact. Postgres will throw an error.
>
> this is the problem - it doesnt if I put a null in (the refernced column
> has no nulls)

NULLs in a referencing column are a special case in the spec.  For a
single column key, a NULL is considered to pass the constraint. For
multiple column keys it depends on the match type.


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

Предыдущее
От: Mr sidh bhatt
Дата:
Сообщение: Returning rowsets/results from a function to another one in plpgsl.
Следующее
От: "Uwe C. Schroeder"
Дата:
Сообщение: Re: FK issue