【发布时间】:2013-11-22 02:55:03
【问题描述】:
Create or replace procedure disp(pEMPLASTNAME varchar2)
IS
Row employee%rowtype;
begin
select * into row from employee where EMPLASTNAME=’pEMPLASTNAME’ ;
dbms_output.put_line('Name: '||Row.EMPID||' '|| Row.EMPNAME);
End;
/
BEGIN
disp(‘Mark’);
END;
/
您好,我正在尝试使用存储过程显示表中的数据。姓氏作为参数通过存储过程传递,并且在执行时,存储过程应显示所有具有姓氏的行。这是我得到的错误;请帮忙! :-
SQL> BEGIN
disp('Mark');
END;
/
BEGIN
*
ERROR at line 1:
ORA-01403: no data found
ORA-06512: at "TEST.DISP", line 5
ORA-06512: at line 2
【问题讨论】:
标签: sql oracle select stored-procedures