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