Re: trigger to enforce FK with nulls?

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: trigger to enforce FK with nulls?
Дата
Msg-id 20060413012221.GB14482@surnet.cl
обсуждение исходный текст
Ответ на trigger to enforce FK with nulls?  (George Young <gry@ll.mit.edu>)
Список pgsql-sql
George Young wrote:

> Since foreign keys per se can't do this, I presume the way
> is to use triggers, though I have not used triggers before.

Says who?  Just don't specify NOT NULL on the referencing column.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


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

Предыдущее
От: George Young
Дата:
Сообщение: trigger to enforce FK with nulls?
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: trigger to enforce FK with nulls?