首页 > 其他 > 详细

兔子-- Can not issue data manipulation statements with executeQuery()

时间:2015-05-01 18:43:15      阅读:357      评论:0      收藏:0      [点我收藏+]

 

Can not issue data manipulation statements with executeQuery()

 

出错地方:st.executeQuery("insert  into  student  values(“1”,“2”,“3”)") ;


 如果你的SQL 语句是 update,insert等更新语句,用statement的execute()


如果sql语句是查询语句则用statement.executeQuery()


 如果更新语句用的是statement的executeQuery()就会出现上诉问题

兔子-- Can not issue data manipulation statements with executeQuery()

原文:http://blog.csdn.net/u013425527/article/details/45420757

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!