整理 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
整理 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