如提,我在servlet里调用该方法,根据返回值进行跳转,但是总是返回false;
而数据库确实已经更新,且没有报错
而数据库确实已经更新,且没有报错
解决方案 »
- 请问一个SQL
- tomcat 突然用不了了
- 用JAVA 画一个3D的笑脸 求助高手
- flex+blazeds+java后台消息推送 有人自己写过么 小弟求解...
- 如何将这个js多区域多时间转换成jsp的
- org.hibernate.util.JDBCExceptionReporter
- struts中怎么使用隐藏表单
- 无语了 编译这个javabean 把我搞疯了
- session的问题,好象有冲突!
- hibernate mysql不自动建表
- 如何判断。下拉菜单和以知的变量
- Win200+Apache2.0+MySQL4+Resin3.03)安装JSP后不知怎样MYSQL老是连接有错。。。求大家看下帮下忙。
true if the first result is a ResultSet object; false if the first result is an update count or there is no resultexecute method returns a boolean to indicate the form of the first result. You must call either the method getResultSet or getUpdateCount to retrieve the result; you must call getMoreResults to move to any subsequent result(s).
建议用executeUpdate()来执行,其返回值为更新的记录数
一般都用executeUpdate()或executeQuery()