Re: selection limit - Mailing list pgsql-novice

From Muhyiddin A.M Hayat
Subject Re: selection limit
Date
Msg-id 001701c39ad8$893dd490$1f00a8c0@middinkcomp
Whole thread Raw
In response to selection limit  ("cristi" <cristi@dmhi.ct.ro>)
List pgsql-novice
----- Original Message -----
From: "cristi" <cristi@dmhi.ct.ro>
To: <pgsql-novice@postgresql.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;



pgsql-novice by date:

Previous
From: "cristi"
Date:
Subject: selection limit
Next
From: Paul Ganainm
Date:
Subject: Re: advice