From: | Sergio <ser(at)perio(dot)unlp(dot)edu(dot)ar> |
---|---|
To: | pgsql-interfaces(at)postgreSQL(dot)org |
Subject: | Re: [INTERFACES] limiting the rows selected in postgresql |
Date: | 1998-11-07 16:39:27 |
Message-ID: | SAK.7.11.1998.bqqscjfl@speedy.perio.unlp.edu.ar |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-interfaces |
Sferacarta Software <sferac(at)bo(dot)nettuno(dot)it> el día Mon, 9 Nov 1998 14:33:06
+0100, escribió:
>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;
this will limit _all_ the querys, right ?
wich is not very flexible.
I can't do something like
select * from news order by news_date limit 10
?
Sergio
From | Date | Subject | |
---|---|---|---|
Next Message | Constantin Teodorescu | 1998-11-07 20:20:05 | Bugs on opening views defined with spaces or upon table names with spaces !!! |
Previous Message | Tom Lane | 1998-11-07 15:45:10 | Re: [INTERFACES] crypt not included when compiling libpgtcl !!!!!!! |
From | Date | Subject | |
---|---|---|---|
Next Message | Constantin Teodorescu | 1998-11-07 20:54:47 | New PgAccess 0.92 beta 1 has been released |
Previous Message | Tom Lane | 1998-11-07 15:45:10 | Re: [INTERFACES] crypt not included when compiling libpgtcl !!!!!!! |