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

Home -> Community -> Usenet -> c.d.o.tools -> Re: Is there any SQL(oracle) functions to get limited rows in select statement

Re: Is there any SQL(oracle) functions to get limited rows in select statement

From: Ra Conrads <raconrads_at_aol.com>
Date: 25 Sep 2000 20:04:54 GMT
Message-ID: <20000925160454.00893.00000923@ng-fp1.aol.com>

>I have sql query which gives me certain number of rows, Is there any way I
>can write the query to and get only ceratin(lets say 50 or 100) record back

SELECT ROWNUM, ... your columns, ...
FROM your table
WHERE ROWNUM <= 50;

Ralf Conrads
E-Mail to: RaConrads_at_AOL.com Received on Mon Sep 25 2000 - 15:04:54 CDT

Original text of this message

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