declare
TYPE record_emp IS RECORD(
f_name scott.emp.ename%type ,
f_job scott.emp.job%type,
f_hirdate scott.emp.hiredate%type);
reco_emp record_emp;
begin
select ename ,job,hiredate into reco_emp from emp where ename=&aaa ;
dbms_output.put_line('reco.emp.f_name:'||reco_emp.f_job );
end ;
TYPE record_emp IS RECORD(
f_name scott.emp.ename%type ,
f_job scott.emp.job%type,
f_hirdate scott.emp.hiredate%type);
reco_emp record_emp;
begin
select ename ,job,hiredate into reco_emp from emp where ename=&aaa ;
dbms_output.put_line('reco.emp.f_name:'||reco_emp.f_job );
end ;
我输入scott 咋提示找不到数据,查询emp表有数据呀!
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/28559805/viewspace-754755/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/28559805/viewspace-754755/