• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to store multiple rows returned from ResultSet and compare the returned rows with a variable  RSS feed

 
madhu raj
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With below query multiple rows are returned:

"select codes from TableName where type = ?"

I have a variable in the same method called "value" of INT type.

Can someone help me, how can i store multiple rows returned from ResultSet and compare the returned rows with the variable "value".

Thanks in advance!!!
 
Roger Sterling
Ranch Hand
Posts: 426
Eclipse IDE Fedora Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://docs.oracle.com/javase/tutorial/jdbc/basics/retrieving.html

Please read this article, which clearly explains how to do this.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!