What is wrong with this update query in java?

后端 未结 1 1258
醉酒成梦
醉酒成梦 2021-01-28 10:39

I am trying to make an update query in my managed bean. Here is the code:

try {
       PreparedStatement checkDB1 = (PreparedStatement) con.prepareStatement(\"up         


        
相关标签:
1条回答
  • 2021-01-28 11:03

    Try using executeUpdate instead of executeQuery. I have seen strange problem with executeQuery while doing a db update.

    0 讨论(0)
提交回复
热议问题