Home » RDBMS Server » Server Administration » Limit records returned by a select
Limit records returned by a select [message #374695] Mon, 25 June 2001 10:54 Go to next message
Muriel BRETONNEAU
Messages: 3
Registered: June 2001
Junior Member
Is there a way to limit the number of records
returned by a select ? (Oracle 8.1.6)
Can you send me a sample ?
Thanks
Muriel
Re: Limit records returned by a select [message #374708 is a reply to message #374695] Mon, 25 June 2001 19:13 Go to previous message
J.S HAN
Messages: 12
Registered: November 2000
Junior Member
Hi.

If you want N rows return.
select *
from table
where rownum <= 5;

rownum is Return row's number.
Previous Topic: Re: Matrix Query
Next Topic: Joining multiple tables again!
Goto Forum:
  


Current Time: Sat Jul 06 15:53:53 CDT 2024