This discussion is archived
4 Replies Latest reply: Mar 22, 2011 4:21 AM by 800268 RSS

How to store a DB row (multiple columns) from ResultSet object to hm/ht

835297 Newbie
Currently Being Moderated
I am trying to store a DB row (which is containing ~150+ columns) from ResultSet Object to HashMap/Hashtable using the below code. But I wonder is, this not working and even do not get any error.

dataslotHashmap.put(rsmd.getColumnName(i+1),rs.getObject(i+1));

where "rsmd" ResultSetMetaData Object and "rs" is ResultSet Object.

Need advice please

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points