Quick question re foreign keys.

Поиск
Список
Период
Сортировка
От Paul Lambert
Тема Quick question re foreign keys.
Дата
Msg-id 471EA7D5.9040403@autoledgers.com.au
обсуждение исходный текст
Ответы Re: Quick question re foreign keys.
Re: Quick question re foreign keys.
Список pgsql-sql
I have a table where one column references by foreign key a column from 
another table. However, the column in this first table does not always 
contain data which results in a not-null constraint violation when I 
attempt an insert.

My question therefore is, is it possible to create a foreign key that is 
conditional, i.e. only enforce the foreign key where the value in that 
table is not null.

-- 
Paul Lambert
Database Administrator
AutoLedgers



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