Re: CONNECT BY

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: CONNECT BY
Дата
Msg-id 28795.1083904730@sss.pgh.pa.us
обсуждение исходный текст
Ответ на CONNECT BY  (Ruslan A Dautkhanov <rusland@scn.ru>)
Список pgsql-bugs
Ruslan A Dautkhanov <rusland@scn.ru> writes:
> Here's the patch ( http://gppl.terminal.ru/ ), which allow
> PostgreSQL use queries like
>  connect by id = prior parent_id

Isn't this the same patch that we rejected a year or two back?

> as described in SQL standard...

AFAIK there is no such syntax in any version of the SQL standard.
The syntax that *is* there in SQL99 uses "WITH" to achieve roughly
the same results, but with much syntactic difference from Oracle.

If you'd like to submit a patch that implements spec-compatible
WITH, I can pass along some preliminary work that Andrew Overholt
did at Red Hat.

            regards, tom lane

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

Предыдущее
От: Ruslan A Dautkhanov
Дата:
Сообщение: CONNECT BY
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: PostgreSQL 7.4.1 JDBC driver bug