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

Home -> Community -> Usenet -> c.d.o.server -> Re: selecting only 10 rows

Re: selecting only 10 rows

From: No My Real Name <xx-huber_at_divers-inc.com-xx>
Date: Thu, 7 Jan 1999 22:28:48 -0500
Message-ID: <773u15$e0p@dfw-ixnews8.ix.netcom.com>


select * from {table_name} where ROWNUM < 11;

Ed Zappulla wrote in message <773mrd$gol$1_at_winter.news.rcn.net>...
>Does anyone know how to limit the number of rows returned from a select
>statement? I have 5000 rows in a table and just want to grab the first 10
>to look at a sample of them. I thought ROWId would do it but it doesn't
>seem to work. SQLSERVER uses set rowcount = 10.
>
>
Received on Thu Jan 07 1999 - 21:28:48 CST

Original text of this message

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