草庐IT

absentdt

全部标签

java - 如何修复列索引超出范围 SQLException

当我传递查询时,出现以下错误。ErrornoisNilErrorStringIsQueryProblem.....java.sql.SQLException:ColumnIndexoutofrange,2>1.这是我的java方法中的代码。PreparedStatementpstm=con.prepareStatement("selectperiodfromstu_attendancemasterwhereclassid=?andabsentdt>=?andabsentdt 最佳答案 此语句中有错误:PreparedStatemen