Can not issue data manipulation statements with executeQuery().解决方案

 

这个错误提示是说无法发行sql语句到指定的位置

错误写法:

 

正确写法:

excuteQuery是查询语句,而我要调用的是更新的语句,所以这样数据库很为难到底要干嘛,实际我想用的是更新,但是我写成了查询,就会出现

Can not issue data manipulation statements with executeQuery().错误

executeQurery()改成excuteUpdate() 错误就没有了。

 

posted @ 2017-01-18 16:28  Claricre  阅读(392)  评论(0)    收藏  举报