Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JDBC and the fly likes resultSet with array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "resultSet with array" Watch "resultSet with array" New topic
Author

resultSet with array

Shyam Hai
Ranch Hand

Joined: Feb 04, 2009
Posts: 68
SMSCConnectInfoBean bean = null;


if(resultSet.next()) {

bean = new SMSCConnectInfoBean(resultSet.getInt("SERVICE_NUMBER"), resultSet.getString("IP_ADDRESS"),
resultSet.getInt("PORT"), resultSet.getString("SYSTEMID"),
resultSet.getString("PASSWORD"), resultSet.getString("SYSTEMTYPE")}


I want to use SMSCConnectInfoBean bean[] = null;

how to use array inside the resultSet.next()

how can retrive
please give sample code ..
dariyoosh za
Greenhorn

Joined: Apr 12, 2009
Posts: 20
Ragavendran Sivaji Rao wrote:SMSCConnectInfoBean bean = null;
I want to use SMSCConnectInfoBean bean[] = null;

how to use array inside the resultSet.next()


Did you look API to see all available methods?


http://java.sun.com/javase/6/docs/api/java/sql/ResultSet.html
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: resultSet with array
 
Similar Threads
SQL Array Question
Using a prepared statement
problem in where clause while fetching records in jtable
unable to pass value of resultset to servlet to jsp
How can you show data from a specific colum in a JList? through JDBC