It's not a secret anymore!
The moose likes JDBC and Relational Databases and the fly likes Displaying records through result set meta data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Displaying records through result set meta data" Watch "Displaying records through result set meta data" New topic
Author

Displaying records through result set meta data

Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 833
Hi,



All the things are wroking but the problem is that ArrayList is displaying just one record whereas I have more than 20 records to display. I tried with loop like: i<result.size(); and result.get(i) then its throwing exception


I stuck here for the last more than 2 days. Please help me

Best regards
>
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 43423
    
  32
What about some standard debugging information? Put some println statements into your loops, then you can see what is being retrieved.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Displaying records through result set meta data
 
It's not a secret anymore!