pl/sql中的帶參數(shù)的光標(biāo)問題
set serveroutput on
declare?
cursor cemp(dno number) is select ename from emp where empno=dno;
pename emp.ename%type;
begin
open cemp(10);
LOOP
fetch cemp into pename;
exit when cemp%notfound;
dbms_output.put_line(pename);
end loop;
close cemp;
end;
/
2017-06-01
將參數(shù)dno賦值7369等值,就可以了