ORACLE的存储过程中的简单游标应用 谁能给讲讲!? 谢谢~

给详细注释下~刚接触 谢谢!
2025-05-17 14:00:49
推荐回答(2个)
回答1:

最简单就是用隐式游标了。
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;

回答2:

http://hi.baidu.com/wangzhiqing999/blog/item/db33b52993b8e23a359bf774.html

Oracle 游标处理 例子