This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Kubernetes in Action and have Marko Luksa on-line!
See this thread for details.
Win a copy of Kubernetes in Action this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

proble with preparedStatement  RSS feed

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

I am facing a problem with preparedStatement.executeUpdate(). My requirement is that I will execute an update query first and I need to log the result of executing query. My expectation is that, when no records are updated zero will be returned. But all the times it returns the number of rows matched. I tried even getUpdateCount(). Solution should work with both mysql and oracle.

Please advice.

Thanks,
Kishore.
 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please show us the code? It helps.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!