早教吧 育儿知识 作业答案 考试题库 百科 知识分享

oracle游标出现符号"end-of-file"在需要下列之一时.declarecursorcurstu5(varsnameinvarchar2:='张华')isselects#,addrfromstu5wheresname=varsname;

题目详情
oracle游标出现符号 "end-of-file"在需要下列之一时.
declare
cursor cur_stu5 (var_sname in varchar2:='张华' )
is select s#,addr from stu5 where sname=var_sname ;
▼优质解答
答案和解析
declare
cursor cur_stu5 (var_sname in varchar2:='张华' )
is
select s#,addr from stu5 where sname=var_sname ;
begin
null
end;
少了begin...end游标不完整.