• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compare 2 Resultsets

 
smitha verghese
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
May i know whether we can compare 2 ResultSets
rs1=rs2 ???
Pls let me know!
Thanks in advance
regards
smitha
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't because the java.sql.ResultSet interface doesn't specify a method for testing the equality. You'll have to resort to manual comparison (unless you know that your JDBC driver's ResultSet implementation overrides the equals() method, which is highly unlikely).
 
smitha verghese
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Thanks a lot for ur reply
regards
Smitha (Smile)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic