LIMIT + OFFSET

From: "MG" <pgsql-general(at)carladata(dot)de>
To: "Pgsql-General" <pgsql-general(at)postgresql(dot)org>
Subject: LIMIT + OFFSET
Date: 2006-01-17 15:43:36
Message-ID: 000801c61b7c$c7b217f0$340aa8c0@geisslinger
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

I want to show an overview where you can place 16 data sets.
I use the sql-statement
SELECT F1,F2 FROM testtable limit 16 offset 0

To show different pages I vary the value for offset.

But if I want to stay on a special data set, I have the problem to find the right value for offset.
How can I realize this?

Thanks for your help

Michaela

Responses

Browse pgsql-general by date

  From Date Subject
Next Message A. Kretschmer 2006-01-17 15:55:13 Re: LIMIT + OFFSET
Previous Message Bogdoll, Dieter 2006-01-17 15:33:46 auto increment within a compound key