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.  ("Phillip Smith" <phillip.smith@weatherbeeta.com.au>)
Re: Quick question re foreign keys.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: "Fernando Hevia"
Дата:
Сообщение: Re: request for help with COPY syntax
Следующее
От: "Phillip Smith"
Дата:
Сообщение: Re: Quick question re foreign keys.