日期:2014-05-17 浏览次数:20932 次
SQL> declare
2 eall emp%rowtype;
3 begin
4 select * into eall from emp where ename='&name';
5 dbms_output.put_line(eall.empno||' '||eall.ename||' '||eall.job||' '||eall.mgr||' '||eall.hiredate||' '||eall.sal
6 ||' '||eall.comm||' '||eall.deptno);
7 exception
8 when no_data_found then
9 dbms_output.put_line('not found data');
10 end;
11 /
输入 name 的值: Smith
7369 Smith CLERK 7902 17-12月-80 800 20
PL/SQL 过程已成功完成。