使用RowBounds实现分页查询很简单。
MyBatis的分页是基于内存的分页,即查出来所有记录,再按起始位置和页面容量取出结果。
Sql映射:
<!-- RowBounds实现分页 -->
<select id="selectByPage" resultType="Emp">
select * from emp
</select>
</
使用RowBounds实现分页查询很简单。
MyBatis的分页是基于内存的分页,即查出来所有记录,再按起始位置和页面容量取出结果。
Sql映射:
<!-- RowBounds实现分页 -->
<select id="selectByPage" resultType="Emp">
select * from emp
</select>
</