Re: What's wrong with this query?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: What's wrong with this query?
Дата
Msg-id 24836.1285165721@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: What's wrong with this query?  (Mike Christensen <mike@kitchenpc.com>)
Список pgsql-general
Mike Christensen <mike@kitchenpc.com> writes:
> So are you saying that a JOIN can only refer to itself and the last
> table on the FROM list?

Um, I think you've got the wrong mental model of the syntax.  JOIN
is a binary operation between two tables:

    tab1 JOIN tab2 ON some-condition-involving-tab1-and-tab2-only

You can nest these critters (ie, tab1 or tab2 could itself be a
JOIN construct), and you can write them as elements of a comma-separated
FROM list.  But the ON condition can never refer to anything outside
its JOIN construct.

            regards, tom lane

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

Предыдущее
От: Lincoln Yeoh
Дата:
Сообщение: Re: How about synchronous notifications?
Следующее
От:
Дата:
Сообщение: Kill -9 for a session process caused all the sessions to be killed