您的位置:首页 > 数据库 > SQL

Oracle PLSQL Demo - 10.For Loop遍历游标[FOR LOOP CURSOR]

2015-06-29 22:55 691 查看
declare
cursor cur_emp is
select t.* from scott.emp t;

begin

for r_emp in cur_emp loop

dbms_output.put_line(r_emp.empno || '   ' || r_emp.sal);

end loop;

end;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: