最简单就是用隐式游标了。
begin
for rec in (select sysdate - rownum / 3 fdate
from user_tables
where rownum <= 10) loop
dbms_output.put_line(rec.fdate);
end loop;
end;
http://hi.baidu.com/wangzhiqing999/blog/item/db33b52993b8e23a359bf774.html
Oracle 游标处理 例子