哪里错啦呢
declare cursor cemp is select ename,sal from emp; pname emp.ename%type; psal emp.sal%type; begin open cemp; while cemp%found loop fetch cemp into pname,psal; dbms_output.put_line(pname||'的薪水是'||psal); end loop; close cemp; end; 哪里错啦?
declare cursor cemp is select ename,sal from emp; pname emp.ename%type; psal emp.sal%type; begin open cemp; while cemp%found loop fetch cemp into pname,psal; dbms_output.put_line(pname||'的薪水是'||psal); end loop; close cemp; end; 哪里错啦?
2016-10-10
举报