假设查询的是第20行前后10条数据 前十条 select * from tb where rownum < 20 minus select * from tb where rownum =< 9 后十条 类似的写法
select count(*) from table;