Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Amount of Datasets

Re: Amount of Datasets

From: Stephan Born <stephan.born_at_beusen.de>
Date: Wed, 29 Sep 1999 13:57:10 +0200
Message-ID: <37F1FE96.F220C23D@beusen.de>

Christian Hartmann schrieb:

> Hi there,
>
> how am I able to restrict the amount of datasets given back with a
> SQL-Statement like "SELECT * FROM XYZ".
>
> I don't think about a where-phrase, but something like "SELECT TOP 3 FROM
> XYZ" as I can use it with MS-SQL-Server.
>
> Is there a way?

As far as I know you have to use a where-clause, there is no phrase like the one you like to use:

select *
from xyz
where rownum < 11

will return 10 rows

Regards, Stephan
--


Dipl.-Inf. (FH) Stephan Born   | beusen Consulting GmbH
fon: +49 30 549932-17          | Landsberger Allee 392
fax: +49 30 549932-29          | 12681 Berlin
mailto:stephan.born_at_beusen.de  | Germany
---------------------------------------------------------------


Received on Wed Sep 29 1999 - 06:57:10 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US