File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Resultset return nothing?! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Resultset return nothing?!" Watch "Resultset return nothing?!" New topic
Author

Resultset return nothing?!

Be Khuong
Greenhorn

Joined: Mar 31, 2012
Posts: 9

Hello, everyone!
I have a table that include: ID, Name, Age... so i want resultset return all of data from ID colum into array that i can get them by: str = arr[0], str_2 = arr[1]... But the thing i got is the number of all row, so please help me.


Java SE, Java EE, NetBeans IDE, Eclipse IDE
Nam Ha Minh
Ranch Hand

Joined: Oct 31, 2011
Posts: 498

Be Khuong wrote:Hello, everyone!
I have a table that include: ID, Name, Age... so i want resultset return all of data from ID colum into array that i can get them by: str = arr[0], str_2 = arr[1]... But the thing i got is the number of all row, so please help me.


Please post your code here! Can't help for such limited information.


PM Me If You Want to get Urgent Help on Java Programming
rohit chavan
Ranch Hand

Joined: Oct 08, 2010
Posts: 132

Post what exactly you are doing, at least the query , so that we can help you.
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3611
    
  60

Welcome to the Ranch, Be!
Be Khuong
Greenhorn

Joined: Mar 31, 2012
Posts: 9

Thank, i now solve problem!
 
Don't get me started about those stupid light bulbs.
 
subject: Resultset return nothing?!