Re: Combining several CTEs with a recursive CTE

Поиск
Список
Период
Сортировка
От David Johnston
Тема Re: Combining several CTEs with a recursive CTE
Дата
Msg-id 1E5EC0E1-13DB-4346-B8EE-212F4DC4CCEA@yahoo.com
обсуждение исходный текст
Ответ на Combining several CTEs with a recursive CTE  (Thomas Kellerer <spam_eater@gmx.net>)
Ответы Re: Combining several CTEs with a recursive CTE  (Thomas Kellerer <spam_eater@gmx.net>)
Список pgsql-sql
On Sep 20, 2011, at 5:58, Thomas Kellerer <spam_eater@gmx.net> wrote:


I'm just wondering if this is intended behavioury, simply not (yet) implemented or even invalid according to the standard? I didn't find any reference that it's not allowed in the manual.

Regards
Thomas



Try sticking the recursive keyword after the "with" if any of the following CTEs are recursive.  

WITH RECURSIVE 
normal1 AS ()
,recursine1 AS ()
,normal2 AS ()
,recursine2 AS ()
SELECT ...

David J.

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

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Combining several CTEs with a recursive CTE
Следующее
От: Thomas Kellerer
Дата:
Сообщение: Re: Combining several CTEs with a recursive CTE