一、无限制查询
select * from table1;
二、限制最大10000条数据查询
select * from table1 where rownum <= 10000
有条件的限制最大10000条数据查询
select * from table1 where id="123" and rownum <= 10000
三、有条件的限制10000-20000条之间的数据
select * from (
select
rownum as t,
name,
id
from table1
where id="123" and <= 20000)
where t > 10000
|