Re: FOREIGN KEY Reference on multiple columns

Поиск
Список
Период
Сортировка
От Luca Vernini
Тема Re: FOREIGN KEY Reference on multiple columns
Дата
Msg-id CAHZ=uVAE3cobpckU+oyYWwF+ENr0UmYAhgu+kRrwmOc+t=g1nw@mail.gmail.com
обсуждение исходный текст
Ответ на FOREIGN KEY Reference on multiple columns  (Weiss, Jörg <J.Weiss@dvz-mv.de>)
Ответы Re: FOREIGN KEY Reference on multiple columns  (Weiss, Jörg <J.Weiss@dvz-mv.de>)
Список pgsql-sql
2014-09-23 11:54 GMT+02:00 Weiss, Jörg <J.Weiss@dvz-mv.de>:
> Hi!
Hi.

> Is it possible to create a “FOREIGN KEY CONSTRAINT” with references to
> multiple columns of the reference table?

Yes, it is.

see here:
http://www.postgresql.org/docs/9.3/static/ddl-constraints.html
Section 5.3.5 there are some examples. One of them has multiple
columns, just like your case.

> Regards …

Regards.



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

Предыдущее
От: Weiss, Jörg
Дата:
Сообщение: FOREIGN KEY Reference on multiple columns
Следующее
От: Weiss, Jörg
Дата:
Сообщение: Re: FOREIGN KEY Reference on multiple columns