select * from foo f, foo2 f2 where (f.rowid, f2.rowid) in (select r, r2from (select r, r2, rownum rn from (select f.rowid r, f2.rowid r2 from foo f, foo2 f2 where f.c1 = f2.a1 and f.c2 = '1' order by f.c1)) where rn >= AAA and rownum <= BBB)order by whatever;
现在将任何where子句放在最里面的位(例如,我将f.c1 =‘1’放入)。
BBB =页面大小。AAA =起点
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)