`

Can not issue data manipulation statements with executeQuery()

阅读更多
1、java.sql.SQLException: Can not issue data manipulation statements with executeQuery().
at com.mysql.jdbc.Statement.checkForDml(Statement.java:298)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:950)

     错误原因: executeUpdate和executeQuery看看sql的执行语句,是查询还是更新

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics