ResultSet size


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: ResultSet size

  1. #1
    Join Date
    Sep 2004
    Posts
    1

    ResultSet size

    Hi!
    Is there any direct method to determine the number of rows of a java.sql.ResultSet-object, I receive after performing a query?
    I'ld like to avoid scrolling through the ResultSet... And getFetchSize() doesn't return the number of rows apparently.
    Thanks in advance!

  2. #2
    Join Date
    Jun 2004
    Posts
    199
    getFetchSize tells you how many rows are to be retrieved at a time. The default is 10. At least it is for Oracle's driver.

    http://www.oracle.com/technology/sam...untResult.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center