Re: Combining several CTEs with a recursive CTE

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: Combining several CTEs with a recursive CTE
Дата
Msg-id j5a9dt$9hc$1@dough.gmane.org
обсуждение исходный текст
Ответ на Re: Combining several CTEs with a recursive CTE  (David Johnston <polobo@yahoo.com>)
Ответы handling duplicate row exception  (Amar Dhole <adhole@tibco.com>)
Список pgsql-sql
David Johnston, 20.09.2011 16:15:
>> 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 normal 1 AS () ,recursine1 AS () ,normal2 AS ()
> ,recursine2 AS () SELECT ...
>
> David J.


Ah! That does the trick.

Thanks
Thomas




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

Предыдущее
От: David Johnston
Дата:
Сообщение: Re: Combining several CTEs with a recursive CTE
Следующее
От: Amar Dhole
Дата:
Сообщение: handling duplicate row exception