作业帮 > 综合 > 作业

java.sql.SQLException:Parameter index out of range (0 < 1 ).

来源:学生作业帮 编辑:灵鹊做题网作业帮 分类:综合作业 时间:2024/04/27 19:11:00
java.sql.SQLException:Parameter index out of range (0 < 1 ).
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1074)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:988)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:974)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919)
at com.mysql.jdbc.PreparedStatement.checkBounds(PreparedStatement.java:3808)
at com.mysql.jdbc.PreparedStatement.setInternal(PreparedStatement.java:3795)
at com.mysql.jdbc.PreparedStatement.setInternal(PreparedStatement.java:3840)
at com.mysql.jdbc.PreparedStatement.setDouble(PreparedStatement.java:3745)
java.sql.SQLException:Parameter index out of range (0 < 1 ).
你传参数的时候使用的下标应该是从0开始的吧?向SQL中传参数的下标是从1开始的!