i got the answer to my question, actaully while setting a fetch size we are just hinting the jdbc driver that we need 1000 rows and while setting the Maxrows we are the limiting for the maximum number of rows that any that only resultset object can contain.
To setMaxRows function fixed that issue.
Main Topics
Browse All Topics





by: christophermccannPosted on 2009-10-14 at 13:35:49ID: 25574880
Why dont you just add LIMIT 1000 to the end of your sql query. For example
SELECT col1 FROM tbl LIMIT 1000
would only return the first 1000 rows.
- Christopher McCann