Re: selection limit

From: "Muhyiddin A(dot)M Hayat" <middink(at)indo(dot)net(dot)id>
To: "cristi" <cristi(at)dmhi(dot)ct(dot)ro>, <pgsql-novice(at)postgresql(dot)org>
Subject: Re: selection limit
Date: 2003-10-25 09:15:29
Message-ID: 001701c39ad8$893dd490$1f00a8c0@middinkcomp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice


----- Original Message -----
From: "cristi" <cristi(at)dmhi(dot)ct(dot)ro>
To: <pgsql-novice(at)postgresql(dot)org>
Sent: Saturday, October 25, 2003 1:29 PM
Subject: [NOVICE] selection limit

> In this moment I can make a selection of the first (or last) 10 records
from
> a table.
> select * from table_name limit 10;
> I want to make a selection of the next 10 records (from 10 to 20 or from
50
> to 60) from a table.
>
> How can I do that?

select * from table_name limit 10 OFFSET 10;
select * from table_name limit 10 OFFSET 50;

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Paul Ganainm 2003-10-25 20:31:52 Re: advice
Previous Message cristi 2003-10-25 05:29:23 selection limit