May 30, 2007 #1 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
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
May 30, 2007 1 #2 SantaMufasa Technical User Jul 17, 2003 12,588 US How about: Code: select * from <table> where rownum <= 100 Let us know if this works for you. Mufasa (aka Dave of Sandy, Utah, USA) [I provide low-cost, remote Database Administration services: www.dasages.com] Upvote 0 Downvote
How about: Code: select * from <table> where rownum <= 100 Let us know if this works for you. Mufasa (aka Dave of Sandy, Utah, USA) [I provide low-cost, remote Database Administration services: www.dasages.com]
Jun 11, 2007 #3 Beilstwh Programmer Jul 13, 2005 819 US 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 Upvote 0 Downvote
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