Re: Re: Printing PostgreSQL reports - Mailing list pgsql-general

From Tom Lane
Subject Re: Re: Printing PostgreSQL reports
Date
Msg-id 6560.982703725@sss.pgh.pa.us
Whole thread Raw
In response to Re: Printing PostgreSQL reports  ("Mitch Vincent" <mitch@venux.net>)
Responses Re: Re: Printing PostgreSQL reports  ("Roderick A. Anderson" <raanders@tincan.org>)
List pgsql-general
"Mitch Vincent" <mitch@venux.net> writes:
> ... use LIMIT X to only grab the first X records from
> a result set. Then on the next page you say LIMIT X OFFSET X (in this
> example it's more of a <Next 10 results> type of thing).

Don't forget to use an ORDER BY clause that constrains the rows into a
unique order, else you may get inconsistent results from the successive
LIMITed queries.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: user meta (to the database, at least) information
Next
From: "Mitch Vincent"
Date:
Subject: Re: Re: Printing PostgreSQL reports