Re: short-cutting if sum()>constant

Поиск
Список
Период
Сортировка
От msi77
Тема Re: short-cutting if sum()>constant
Дата
Msg-id 1751261509302@webmail116.yandex.ru
обсуждение исходный текст
Ответ на Re: short-cutting if sum()>constant  (Andreas Kretschmer <akretschmer@spamfence.net>)
Список pgsql-sql
> 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@yandex.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


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

Предыдущее
От: Andreas Kretschmer
Дата:
Сообщение: Re: short-cutting if sum()>constant
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: short-cutting if sum()>constant