Re: Forward declaration of table

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Forward declaration of table
Дата
Msg-id CAKFQuwaKhPN3GQ7HShmaM4qorqKq64ezrLGAJSVC49g-xx9o1A@mail.gmail.com
обсуждение исходный текст
Ответ на Forward declaration of table  (Alexander Farber <alexander.farber@gmail.com>)
Список pgsql-general
On Tue, Aug 23, 2016 at 1:10 PM, Alexander Farber <alexander.farber@gmail.com> wrote:

So my question is if I can somehow "forward declare" the words_moves table?


​A better way to phrase this is:

Is it possible to create circular foreign key dependencies between tables?

The answer is no.

You generally need to introduce a third table.  I haven't delved deep enough into your scenario to be more specific.

David J.
 

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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Forward declaration of table
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Forward declaration of table