Re: [INTERFACES] limiting the rows selected in postgresql

From: Sferacarta Software <sferac(at)bo(dot)nettuno(dot)it>
To: pgsql-interfaces(at)postgresql(dot)org, RADHAKRISHNAN C V <cvr(at)md2(dot)vsnl(dot)net(dot)in>
Subject: Re: [INTERFACES] limiting the rows selected in postgresql
Date: 1998-11-09 13:33:06
Message-ID: 7606.981109@bo.nettuno.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-interfaces

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 1998-11-09 15:27:27 Re: [HACKERS] Re: [COMMITTERS] 'pgsql/src/backend/lib stringinfo.c'
Previous Message RADHAKRISHNAN C V 1998-11-09 12:52:58 limiting the rows selected in postgresql

Browse pgsql-interfaces by date

  From Date Subject
Next Message Dave Page 1998-11-09 16:04:21 pgAdmin v6.4.0 Released
Previous Message RADHAKRISHNAN C V 1998-11-09 12:52:58 limiting the rows selected in postgresql