Search Postgresql Archives

Re: Web + Slicing/Paging datas

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2009-04-23, durumdara <durumdara@xxxxxxxxx> 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.


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux