Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ResultSet--Can not able to get the value of the column

 
abhi thewall
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am working on a swing project.I have created the statement and executed query.
Got the result set object.Now fron result set object I am trying to get the value of the column amount using rs.getInt("Amount");
Its showing Invalid cursor state.

I can get the meta data from the resultset object and from where if i am trying to find the column number or column name its giving correctly.

But not able to call any other method on resultset object except rs.next,rs.first etc.

Here is the code:--

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic