码迷,mamicode.com
首页 >  
搜索关键字:sqlexception    ( 976个结果)
JSP(3) ----JDBC编程2
接上节:对上节http://4440271.blog.51cto.com/4430271/1661684程序修改:packagecom.jike.jdbc; importjava.sql.Connection; importjava.sql.DriverManager; importjava.sql.SQLException; importjava.sql.Statement; publicclassTransactionTest{ publicstaticConnectiong..
分类:数据库   时间:2015-06-14 16:57:51    阅读次数:136
java调用oracle函数
/** * 调用函数取得数据表的ID值 * @param tableName 表名 * @return * @throws SQLException */ public String callFun(String tableName) throws SQLException { Connection conn = ConnectionFactory.getConnect...
分类:数据库   时间:2015-06-11 16:58:48    阅读次数:141
java.sql.SQLException: Can not issue data manipulation statements with executeQuery().
1、错误描述 java.sql.SQLException: Can not issue data manipulation statements with executeQuery(). at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:996) at com.mysql.jdbc.SQLError.createSQLEx...
分类:数据库   时间:2015-06-11 13:09:17    阅读次数:172
java.sql.SQLException: Can not issue empty query.
1、错误描述 java.sql.SQLException: Can not issue empty query. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:996) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:935) at com.my...
分类:数据库   时间:2015-06-11 11:12:18    阅读次数:156
【使用jdbc和servlet实现阅览文章访问次数】
Java代码packagecom.lm.org;importjava.io.IOException;importjava.io.PrintWriter;importjava.sql.Connection;importjava.sql.DriverManager;importjava.sql.PreparedStatement;importjava.sql.ResultSet;importjava.sql.SQLException;importjavax.servlet.ServletContext;imp..
分类:数据库   时间:2015-06-11 00:35:44    阅读次数:152
Caused by: java.sql.SQLException: Incorrect integer value: '' for column 'clientId' at row 41
1、错误描述 [ERROR:]2015-06-10 13:48:26,253 [异常拦截] oa.exception.ExceptionHandler org.hibernate.exception.GenericJDBCException: error executing work at org.hibernate.exception.internal.StandardSQLExceptio...
分类:数据库   时间:2015-06-10 15:40:31    阅读次数:254
Caused by: java.sql.SQLException: ORA-01795: 列表中的最大表达式数为 1000解决方案
这个原因在于Oracle语法限制,in内数量必须小于1000,故采取满1000分割用OR连接,下面是解决方案: /** * Example: List sqhlist=[''aa''"bb""cc""dd""ee""ff""gg"'] ; * Test.getSqlStrByList(sqhList,3,"SHENQINGH")= "SHENQING IN * ('aa','bb...
分类:数据库   时间:2015-06-09 11:59:15    阅读次数:171
java.sql.SQLException: Parameter index out of range (0 < 1 )
由于初学写JDBC,所以烦了一个白痴错误,特此记录下来,以期望对寻求同样错误的小伙伴们一个答案,也是自己学习的一个总结记录 该异常的提示错误代码处并不是实际出现错误的代码处。 异常提示为:java.lang.RuntimeException: java.sql.SQLException: Parameter index out of range (0 原文错误代码为:stmt = conn...
分类:数据库   时间:2015-06-08 09:50:11    阅读次数:226
SQL报错error:索引中丢失IN或OUT参数
简单记录下: 今天mybatis中遇到一个错误: org.springframework.jdbc.UncategorizedSQLException: PreparedStatementCallback; uncategorized SQLException for SQL [INSERT INTO law_enforce_user(user_code,name,sex,birthday) ...
分类:数据库   时间:2015-06-08 09:44:57    阅读次数:464
Oracle 常见错误排查
1. java.sql.SQLException: ORA-01000: 超出打开游标的最大数step 1: 查看数据库当前的游标数配置slqplus:show parameter open_cursors;step 2: 查看游标使用情况:select o.sid, osuser, m...
分类:数据库   时间:2015-06-06 00:16:25    阅读次数:183
共976条   上一页 1 ... 68 69 70 71 72 ... 98 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!