Re: arrays and references

Поиск
Список
Период
Сортировка
От Travis Bauer
Тема Re: arrays and references
Дата
Msg-id a7cmve$1kbc$1@jupiter.hub.org
обсуждение исходный текст
Ответ на arrays and references  (Mathieu Arnold <mat@mat.cc>)
Список pgsql-general
Mathieu Arnold wrote:

> Hi
>
> I was wondering if there was a possibity to do something like this :
> create table a (a int primary key);
> create table b (b int primary key, a int[] references a(a));
> to avoid having to create another table to join the two tables.
>

You could create table a, table containing b and a, and a view c, which
refers to a and b, giving you the structure you want.

--
Travis Bauer


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

Предыдущее
От: Mathieu Arnold
Дата:
Сообщение: arrays and references
Следующее
От: "Nigel J. Andrews"
Дата:
Сообщение: Re: Postmaster processes running out of control?