Re: Re: Printing PostgreSQL reports

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Mitch Vincent" <mitch(at)venux(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Re: Printing PostgreSQL reports
Date: 2001-02-20 21:15:25
Message-ID: 6560.982703725@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Mitch Vincent" <mitch(at)venux(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Chris Hayner 2001-02-20 21:29:41 C function woes
Previous Message Tom Lane 2001-02-20 21:11:53 Re: INSERT INTO problem