select count(*) into ii from table
for ...(i..ii/100 ?)
execute immediate "select a ,f1,f2 from select rownum a,f1,f2 from table
where a>="|| i|| "*100 and a<("|| i|| "+1)*100
next for
create function get_count(p_table in varchar2)
return number
as
num number;
begin
execute immediate 'select count(1) from '||p_table into num;
return trunc(num);
end;
/
select * from table_name where mod(rownum,get_count(table_name)/100)=0