资料 mybatis 一条语句 分页查询(同时获得符合条件的总记录数)
整理 04-mybatis 一条语句 分页查询。
获得总条数 字段 count
select * from (
select rownum rm ,t.*
from (
select u.* ,(select count(1) from users) count
from users u
) t
) where rm>2 and rm<5
声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。
- 上一篇: mybatis3.1分页自动添加总数
- 下一篇: mybatis框架的两种分页