求助PL/SQL问题
accept no prompt ‘请输入雇员编号’;
declare
no emp.empno%type;
rec emp%rowtype;
begin
select empno into no from emp where empno=&no; --&no:从键盘输入
select * into rec from emp where empno=&no;
dbms_output.put_line(‘经理编号为:’||rec.mgr);
dbms_output.put_line(‘经理编号为:’||rec.empno);
end;
这是我写的1代码,还有利用经理的编号查询详细信息不知道怎么整了,刚学这个,请大佬给看一下