Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to limit query count 1

Status
Not open for further replies.

mars19301

MIS
May 31, 2001
69
US
Using TOAD, I am querying a very large file, but only want the data for the first 100 records to review. Is there a way to do this?

Thank you in advance for all advice. m
 
How about:
Code:
select * from <table>
 where rownum <= 100
Let us know if this works for you.

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services: www.dasages.com]
 
if you want to see a random selection of rows use

select * from my_table
where rownum <= 100;

if you want to see the first 100 rows of a sorted list use

select * from
(select * from my_table
order by my_col)
where rownum <= 100;


Bill
Oracle DBA/Developer
New York State, USA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top