Re: Foreign Key normalization question

Поиск
Список
Период
Сортировка
От Matthew Wilson
Тема Re: Foreign Key normalization question
Дата
Msg-id slrngbr809.l2q.matt@sprout.tplus1.com
обсуждение исходный текст
Ответ на Foreign Key normalization question  (Matthew Wilson <matt@tplus1.com>)
Список pgsql-general
On Tue 02 Sep 2008 04:06:20 PM EDT, Martin Gainty wrote:
> you can use setup a foreign key constraint in your create table so that col=
> umn is only populated when
> there is a value which syncs to the referenced value
> http://www.postgresql.org/docs/7.4/interactive/sql-createtable.html

I don't think that will work.

When somebody inserts (99, 98) into product_location, I want to make
sure that product ID 99 has the same customer ID as location ID 98.

Matt

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

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: Foreign Key normalization question
Следующее
От: Matthew Wilson
Дата:
Сообщение: Re: Foreign Key normalization question