Re: Making Complicated References

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Making Complicated References
Дата
Msg-id 20030330181951.GA27579@wolff.to
обсуждение исходный текст
Ответ на Making Complicated References  ("Daniel R. Anderson" <dan@mathjunkies.com>)
Ответы Re: Making Complicated References  (Dennis Gearon <gearond@cvc.net>)
Список pgsql-general
On Sun, Mar 30, 2003 at 03:06:46 +0000,
  "Daniel R. Anderson" <dan@mathjunkies.com> wrote:
> Hi all,
>
> I have tables A, B, and C.  foo within Table B & C references foo in
> table A.  I want bar in table C to reference bar in table B -- but I
> want it to reference only those bars in B with a foo that is the same.
>
> Is that possible?

If foo + bar is a candidate key for B, then you can use a multicolumn
foriegn key. If foo + bar isn't a candidate key for B, then I think you
will need to explain more about what you are trying to do.


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

Предыдущее
От: Arjen van der Meijden
Дата:
Сообщение: Re: Select aliasses in where and other places of the
Следующее
От: Dennis Gearon
Дата:
Сообщение: Re: Making Complicated References