pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sferacarta Software <sferac@bo.nettuno.it>
To: pgsql-interfaces@postgresql.org, RADHAKRISHNAN C V <cvr@md2.vsnl.net.in>
Subject: Re: [INTERFACES] limiting the rows selected in postgresql
Date: Mon, 9 Nov 1998 14:33:06 +0100
Message-ID: <7606.981109@bo.nettuno.it> (raw)
References: <Pine.OSF.3.95.981109182032.10351B-100000@md2.vsnl.net.in>

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'-





view thread (5+ messages)  latest in thread

Message-ID: <7606.981109@bo.nettuno.it>
Permalink:  ../7606.981109@bo.nettuno.it/
Also on:    postgresql.org/message-id/7606.981109@bo.nettuno.it

 · 

reply

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-interfaces@postgresql.org
  Cc: sferac@bo.nettuno.it, cvr@md2.vsnl.net.in
  Subject: Re: [INTERFACES] limiting the rows selected in postgresql
  In-Reply-To: <7606.981109@bo.nettuno.it>

* 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