set serveroutput on;--for display the resultcreate or replace procedure test
is
cursor mycursor is
select dname from dept;
myname dept.dname%type;
begin
for temp in mycursor loop
dbms_output.put_line(temp.dname);
end loop;
end;
is
cursor mycursor is
select dname from dept;
myname dept.dname%type;
begin
for temp in mycursor loop
dbms_output.put_line(temp.dname);
end loop;
end;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货