分页查询

Posted KoKo

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了分页查询相关的知识,希望对你有一定的参考价值。

 

使用 RowBounds 对结果集进行分页 

  1. <select id="findAllStudents" resultMap="StudentResult">
  2.     select * from Students
  3. </select>
  4. int offset =0 , limit =25;
  5. RowBounds rowBounds = new RowBounds(offset, limit);
  6. List<Student> = studentMapper.getStudents(rowBounds);

以上是关于分页查询的主要内容,如果未能解决你的问题,请参考以下文章