主题:关于struts+jdbc分页 出错问题
String sql = "SELECT TOP 15 * FROM zlb_lgz_hxcf WHERE ID NOT IN(SELECT TOP "+"15*(pageInfoVO.getPageIndex()-1)"+" ID FROM zlb_lgz_hxcf)";
stmt = con.prepareStatement(sql);
stmt.setInt(1, (pageInfoVO.getPageIndex()-1)*pageInfoVO.getRows());
stmt.setInt(2, pageInfoVO.getRows());
大家帮忙看看 这个分页哪里出错了
stmt = con.prepareStatement(sql);
stmt.setInt(1, (pageInfoVO.getPageIndex()-1)*pageInfoVO.getRows());
stmt.setInt(2, pageInfoVO.getRows());
大家帮忙看看 这个分页哪里出错了