Re: How to limit # of rows returned by SELECT

From: Anton Dischner <dischner_at_med.uni-muenchen.de>
Date: 1996/02/08
Message-ID: <dischner-0802961720300001_at_gkc12a.klch.med.uni-muenchen.de>#1/1


Hi Gordon,

try select * from <your_table> where rownum < 11;

for the first ten items.
Note that the rownum is calculated last, so any other where clauses with
rownum will probably not work.

HTH, Toni

-- 
A. Dischner, AIX sysadmin, Oracle DBA           | Two planets meet;
Institut fuer Klinische Chemie                  | How are you ?
Klinikum Grosshadern                            | Bad ... , i 've got 
Ludwig Maximilians Universitaet Muenchen,  GER  | homo sapiens :-)
Marchioninistr.15 81366 Muenchen 49-89-70953202
Received on Thu Feb 08 1996 - 00:00:00 CET

Original text of this message