> Sorry, but i don't know how a CTE can help in this case, can you explain
I mean RECURSIVE CTE. You can check your condition on each iteration and stop execution when condition is false.
Sergey
> msi77 <msi77(at)yandex(dot)ru> wrote:
> > Развернуть
> > Does PG support CTE?
> Since 8.4 yes.
> > Развернуть
> > You can try it.
> Sorry, but i don't know how a CTE can help in this case, can you explain
> that?
> Andreas
>
Здесь спама нет http://mail.yandex.ru/nospam/sign