Re: Web + Slicing/Paging datas

Поиск
Список
Период
Сортировка
От Jasen Betts
Тема Re: Web + Slicing/Paging datas
Дата
Msg-id gt6sbv$kao$2@reversiblemaps.ath.cx
обсуждение исходный текст
Ответ на Web + Slicing/Paging datas  (durumdara <durumdara@gmail.com>)
Список pgsql-general
On 2009-04-23, durumdara <durumdara@gmail.com> wrote:
> Hi!
>
> In a mod_py application I wanna write a wrapper that handle all PSQL
> data view with paging/slicing.
>
> For example:
> I have 1.500 records. I wanna show only N (f. ex: 15) records in the
> view, other records are accessable with a pager (links):

For small numbers of records you can use


SELECT ...
... LIMIT how_many OFFSET where_to_start


If there are a large number of results this may be inefficient.


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

Предыдущее
От: Jasen Betts
Дата:
Сообщение: Re: Sequence Incrementing by 2 insted of 1
Следующее
От: Developer
Дата:
Сообщение: postgres only in local socket