Sql Query result into an Array?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   MiaJ_1
Posted On:   Monday, March 25, 2002 11:08 AM

Is it possible to assign the value of a resultset into an array?

Re: Sql Query result into an Array?

Posted By:   Mandar_Pohnerkar  
Posted On:   Tuesday, March 26, 2002 01:28 AM

Yes, once u execute a query, it will return u a resulset object,then u use

while(rs.next()){
arr[i]=rs.getString("field_name");
i++;
}

here, rs= resultset object
field_name=name of the field which u want to retrieve.

I hope this will solve ur problem
About | Sitemap | Contact