declare
dianhua varchar2(20);
begin
select empphone into dianhua
from emp
where empid like '00801';
dbms_output.put_line('部门地址'||dianhua);
end;
/
开始使用like '008%'显示
exact fetch returns more than requested number of rows
明白是select into 结果集只能是有一个仅有一行。
[@more@]来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/11239092/viewspace-971867/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/11239092/viewspace-971867/