File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Regd JDBS Statement... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Regd JDBS Statement..." Watch "Regd JDBS Statement..." New topic

Regd JDBS Statement...

senthil nathan

Joined: Jun 14, 2002
Posts: 17
I have a query which returns 10,000 rows and it takes lot of time to is there any way in java while calling statement.executeQuery that i can mention get only 60 rows...
Pat Wallwork
Ranch Hand

Joined: Sep 23, 2001
Posts: 72
In your SQL statement just say limit 60

this limits the results returned to the first 60 for your query
senthil nathan

Joined: Jun 14, 2002
Posts: 17
I'm working in DB2 database...this is not possible....
Any other suggestion...
I agree. Here's the link:
subject: Regd JDBS Statement...
It's not a secret anymore!