Re: LIMIT BASED ON PERCENT

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Re: LIMIT BASED ON PERCENT
Дата
Msg-id 200911190748.00451.guillaume@lelarge.info
обсуждение исходный текст
Ответ на Re: LIMIT BASED ON PERCENT  (Kris Kewley <kris.kewley@gmail.com>)
Список pgsql-sql
Le jeudi 19 novembre 2009 à 01:20:24, Kris Kewley a écrit :
> Could you not create a function to do this instead?
>
> Set var_limit = 20% of row count
> Replace subquery with var_limit
>

Sure, see the previous mails from Pavel. You can also put the percent as a
parameter of the function.


--
Guillaume.http://www.postgresqlfr.orghttp://dalibo.com


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

Предыдущее
От: Kris Kewley
Дата:
Сообщение: Re: LIMIT BASED ON PERCENT
Следующее
От: "Oliveiros C,"
Дата:
Сообщение: Re: need nelp with aggregate functions