From: Richard Huxton <dev@archonet.com>
To: padmanabha konkodi <konkodi221@rediffmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: restircting rows
Date: Wed, 22 Feb 2006 09:18:27 +0000
Message-ID: <43FC2C63.8000006@archonet.com> (raw)
In-Reply-To: <20060222090657.17853.qmail@webmail49.rediffmail.com>
References: <20060222090657.17853.qmail@webmail49.rediffmail.com>
padmanabha konkodi wrote:
>
>
> hi all,
>
> my query return 100 rows but if i am intrested only from 40-60 rows
> then how to restrict.
>
> for example
>
> select * from students (returns 100 rows).but i am intrested only
> rows from 40 to 60.
SELECT * FROM student ORDER BY something LIMIT 20 OFFSET 40;
Be aware that this will have to fetch 60 rows and throw the first 40 away.
--
Richard Huxton
Archonet Ltd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: dev@archonet.com, konkodi221@rediffmail.com
Subject: Re: restircting rows
In-Reply-To: <43FC2C63.8000006@archonet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox