with _t as (select row_number() over (order by SQL结果中的排序字段) as _row,*from(
--填充需要分页的SQL结果
) a )select(select count(*) from _t) as _recordcount, * from _t where _row between 1 and 10 order by _row
with _t as (select row_number() over (order by SQL结果中的排序字段) as _row,*from(
--填充需要分页的SQL结果
) a )select(select count(*) from _t) as _recordcount, * from _t where _row between 1 and 10 order by _row