Re: BUG ? or SQL miss understanding ?

Поиск
Список
Период
Сортировка
От Manfred Koizar
Тема Re: BUG ? or SQL miss understanding ?
Дата
Msg-id oofe909v1ahh4f66qf2fui23nijpdd56qv@email.aon.at
обсуждение исходный текст
Ответ на BUG ? or SQL miss understanding ?  ("Bogdan Vatkov" <bvatkov@globaltech-bg.com>)
Ответы Re: BUG ? or SQL miss understanding ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Wed, 28 Apr 2004 12:33:15 +0300, "Bogdan Vatkov"
<bvatkov@globaltech-bg.com> wrote:
>SQL error:
>ERROR:  JOIN/ON clause refers to "vras_audio_records", which is not part of JOIN

In
    SELECT ... FROM a, b LEFT JOIN c ON (a.id = ...)

the LEFT JOIN operator has higher precedence than the comma, so "a" is
not part of the JOIN.  Better use ANSI syntax consistently:

    SELECT ... FROM a INNER JOIN b ON (....)
                       LEFT JOIN c ON (....)

Servus
 Manfred

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

Предыдущее
От: BRINER Cedric
Дата:
Сообщение: pgsql documentation error ?
Следующее
От: BRINER Cedric
Дата:
Сообщение: create synopsis wrong ?