很多种方法
第一种,用connect by 来构建
语句如下,直接运行即可
with t as
(select rownum rn from dual connect by rownum<=100 )
select * from t where rn between 90 and 95
方法2,找一个表,确定条数在6行以上
select t.rn from
(select rownum+89 rn from 表名) t
where t.rn<=95
类似的方法还有很多
create sequence seq_name start with 90 maxvalue 95 increment by 1--创建序列
每次用seq_name.nextval就行了