X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 349039DC86B for ; Wed, 22 Feb 2006 05:23:37 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 66363-06 for ; Wed, 22 Feb 2006 05:23:37 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp-send.myrealbox.com (smtp-send.myrealbox.com [151.155.5.143]) by postgresql.org (Postfix) with ESMTP id 494DE9DC857 for ; Wed, 22 Feb 2006 05:23:33 -0400 (AST) Received: from [172.16.1.187] grzm [61.197.227.146] by smtp-send.myrealbox.com with NetMail SMTP Agent $Revision: 1.6 $ on Linux; Wed, 22 Feb 2006 02:23:35 -0700 In-Reply-To: <20060222090657.17853.qmail@webmail49.rediffmail.com> References: <20060222090657.17853.qmail@webmail49.rediffmail.com> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: pgsql-sql@postgresql.org Content-Transfer-Encoding: 7bit From: Michael Glaesemann Subject: Re: restircting rows Date: Wed, 22 Feb 2006 18:23:40 +0900 To: "padmanabha konkodi" X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.414 required=5 tests=[AWL=0.414] X-Spam-Score: 0.414 X-Spam-Level: X-Archive-Number: 200602/261 X-Sequence-Number: 24271 On Feb 22, 2006, at 18:06 , padmanabha konkodi wrote: > 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. See LIMIT and OFFSET. http://www.postgresql.org/docs/8.1/interactive/sql-select.html#SQL-LIMIT Michael Glaesemann grzm myrealbox com