写一个存储过程,根据部门编号,输出该部门所有员工的姓名和薪水
create or replace procedure nameandsal(dno in emp.deptno%type)
is
cursor c_emp is select ename,sal from emp where deptno=dno;
begin
for myemp in c_emp
loop
dbms_output.put_line(myemp.ename||' '||myemp.sal||);
end loop;
end;
declare
vno emp.deptno%type:=&vno;
begin
nameandsal(vno);
end;
为啥会报错呀,我的存储过程没有创建对吗