Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JDBC and Relational Databases
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Spring Boot in Practice
this week in the
Spring
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Ron McLeod
Jeanne Boyarsky
Paul Clapham
Sheriffs:
Liutauras Vilda
Henry Wong
Devaka Cooray
Saloon Keepers:
Tim Moores
Stephan van Hulst
Tim Holloway
Al Hobbs
Carey Brown
Bartenders:
Piet Souris
Mikalai Zaikin
Himai Minh
Forum:
JDBC and Relational Databases
Regd JDBS Statement...
senthil nathan
Greenhorn
Posts: 17
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I have a query which returns 10,000 rows and it takes lot of time to return.so is there any way in
java
while calling statement.executeQuery that i can mention get only 60 rows...
Thanks.
Senthil
Pat Wallwork
Ranch Hand
Posts: 72
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
In your SQL statement just say limit 60
select * from foobar limit 60
this limits the results returned to the first 60 for your query
-Pat
senthil nathan
Greenhorn
Posts: 17
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I'm working in DB2 database...this is not possible....
Any other suggestion...
Thanks
Senthil
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
adding image to JTable
Dynabeans Problems
Adding the rows in a JSP
Field definitions when creating a table?
saving multiple rows
More...