Received: from bologna.nettuno.it (bologna.nettuno.it [193.43.2.1]) by hub.org (8.9.1/8.9.1) with ESMTP id IAA20242 for ; Mon, 9 Nov 1998 08:40:40 -0500 (EST) (envelope-from sferac@bo.nettuno.it) Received: from proxy.sferacarta.com (mail@sfcabop1.nettuno.it [193.207.10.213]) by bologna.nettuno.it (8.8.6/8.8.6/NETTuno 3.1) with ESMTP id OAA17208; Mon, 9 Nov 1998 14:40:35 +0100 (MET) Received: from blu.sferacarta.com (mail.sferacarta.com) [10.20.30.12] by proxy.sferacarta.com with smtp (Exim 2.04 #1 (Debian)) id 0zctAb-0000yF-00; Mon, 9 Nov 1998 15:23:58 +0000 Date: Mon, 9 Nov 1998 14:33:06 +0100 From: Sferacarta Software X-Mailer: The Bat! (v1.017) UNREG Reply-To: Sferacarta Software Organization: Sferacarta Software Priority: Normal Message-ID: <7606.981109@bo.nettuno.it> To: pgsql-interfaces@postgresql.org, RADHAKRISHNAN C V Subject: Re: [INTERFACES] limiting the rows selected in postgresql References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Hello Radhakrishnan, luned́, 9 novembre 98, you wrote: RCV> how can i limit the number of rows obtained from a select statement RCV> in postgreSQL to say, 10 rows while the select condition actually RCV> matches more than that. in oracle we can use the ROW_NUM variable RCV> for this purpose but now i met such an issue with postgreSQL On v6.4 you can specify a limit for queries as: set QUERY_LIMIT TO '10'; To have only the first 10 rows from a select; -Jose'-