Re: BUG ? or SQL miss understanding ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG ? or SQL miss understanding ?
Дата
Msg-id 3159.1083673154@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG ? or SQL miss understanding ?  (Manfred Koizar <mkoi-pg@aon.at>)
Список pgsql-general
Manfred Koizar <mkoi-pg@aon.at> writes:
> 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:

BTW, a lot of people coming from MySQL get this wrong.  According to
what I've heard, MySQL considers JOIN to have the same precedence as
comma, so that the above would in fact work as the OP seems to expect.
However, MySQL is flatly in violation of the SQL standard on this
point :-(

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgsql documentation error ?
Следующее
От: "Shane D."
Дата:
Сообщение: [Fwd: help building datetime from varchars]