| From: | Kevin Hunter Kesling <kmhunte2(at)ncsu(dot)edu> |
|---|---|
| To: | Vik Fearing <vik(dot)fearing(at)dalibo(dot)com> |
| Cc: | Postgres Novice List <pgsql-novice(at)postgresql(dot)org> |
| Subject: | Re: how to handle Pagination > |
| Date: | 2013-10-15 17:16:23 |
| Message-ID: | 525D7867.80903@ncsu.edu |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-novice |
At 12:54pm -0400 Tue, 15 Oct 2013, Vik Fearing wrote:
> On 10/15/2013 05:01 PM, jesusthefrog wrote:
>> You will probably want to use OFFSET and LIMIT, which are the
>> window size and page. Something like
>>
>> SELECT .. FROM ... WHERE ... ORDER BY (...) OFFSET y LIMIT x
>>
>> So say you want to get 100 records at a time. You would get page 1
>> with OFFSET 0 LIMIT 100, then page 2 with OFFSET 100, OFFSET 200,
>> and so on.
>
> You will most certainly NOT want to use that technique.
>
> Instead, try these links:
Doh! My previous email was late! Vik wins this round! :-)
Kevin
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Kinnard Hockenhull | 2013-10-15 17:24:10 | Re: error: there is no parameter $1 |
| Previous Message | Kevin Hunter Kesling | 2013-10-15 17:02:06 | Re: how to handle Pagination > |