Can not issue data manipulation statements with executeQuery()错误解决
来源:互联网 发布:java 7新特性 编辑:程序博客网 时间:2024/05/02 00:16
强烈建议:尽信书,不如无书!!!
下午没事,就练习了下连接数据库,结果发现了一个问题,哈哈
Can not issue data manipulation statements with executeQuery()
原因是这句:st.executeQuery("insert into student values('"+name+"','"+age+"','"+introduce+"')") ;
我是看了书上一个例子,然后开始模仿,发现问题后,发现书上其他程序语句都是用这句,
后来看了几个网页,才明白这句应该该成这样子:st.execute("insert into student values('"+name+"','"+age+"','"+introduce+"')") ;
最后总结:如果你的SQL 语句是诸如update,insert的更新语句,应该用statement的execute()方法,如果用的是statement的executeQuery()就会出现上诉问题- Can not issue data manipulation statements with executeQuery()错误解决
- Can not issue data manipulation statements with executeQuery()错误解决
- Can not issue data manipulation statements with executeQuery()错误解决
- Can not issue data manipulation statements with executeQuery()错误解决
- JavaBean链接MySQL数据库错误aq.executeQuery.Can not issue data manipulation statements with executeQuery()解决
- Can not issue data manipulation statements with executeQuery().
- 兔子-- Can not issue data manipulation statements with executeQuery()
- Can not issue data manipulation statements with executeQuery()解决方案
- Can not issue data manipulation statements with executeQuery()
- Can not issue data manipulation statements with executeQuery()
- Can not issue data manipulation statements with executeQuery().
- Can not issue data manipulation statements with executeQuery().问题的解决
- java.sql.SQLException: Can not issue data manipulation statements with executeQuery().
- java.sql.SQLException:Can not issue data manipulation statements with executeQuery()
- java.sql.SQLException: Can not issue data manipulation statements with executeQuery().
- Caused by: java.sql.SQLException: Can not issue data manipulation statements with executeQuery().
- MySQL——报错:Can not issue data manipulation statements with executeQuery().
- java.sql.SQLException: Can not issue data manipulation statements with executeQuery().
- Visual Studio 2008 常用快捷键
- 地图中的偏移问题的解决和源码(C#)
- win7系统远程桌面链接linux系统
- WTL学习之旅(一) 我的第一个WTL工程
- ubuntu apache ww-data权限配置
- Can not issue data manipulation statements with executeQuery()错误解决
- 太牛逼了,找到个.NET(C#)实现的 飞鸽传书 库!
- JavaScript语言精髓与编程实践(第2版)
- Windows_7彻底删除Oracle_11g_R2
- 深入探讨用位掩码代替分支(3):VC6速度测试
- 架设git服务器,和使用ssh连接git服务
- 软件版本后缀含义
- iOS应用开发者需知的IAP功能运作机制
- Windows_7彻底删除Oracle_11g