老师讲的超级棒!加油!希望慕课网有更多这种老师!
另外,慕课能不能开一个jbpm工作流的课程呀!
另外,慕课能不能开一个jbpm工作流的课程呀!
2016-04-30
最赞回答 / 慕粉3245186
你使用record类型来存储游标中的数据试试typer record_emp is record(var_ename emp.ename%type,var_sal emp.ename%type);aa record_emp
2016-04-22
loop
fetch cemp into pempno,psal;
exit when (salTotal +psal*0.1)>50000;
exit when cemp%notfound;
update emp1 set sal =sal*1.1 where empno=pempno;
countEmp :=countEmp+1;
salTotal := salTotal +psal*0.1;
end loop;
fetch cemp into pempno,psal;
exit when (salTotal +psal*0.1)>50000;
exit when cemp%notfound;
update emp1 set sal =sal*1.1 where empno=pempno;
countEmp :=countEmp+1;
salTotal := salTotal +psal*0.1;
end loop;
2016-04-08
已采纳回答 / STRONG很壮不怕撞
第14行:update emp set sal=sal*1.1 when empno=pempno; 这里条件不应该是when,而是where第20行:dbms_output.put_line(pename||psal);这里pename未声明,根据你前面写的,应该是要写pname吧代码执行的时候报错会提示第几行第几列,是什么问题,根据提示修改就可以。
2016-04-07
已采纳回答 / inverted_demon
set serveroutput ondeclarecursor guangbiao01 is select to_char(hiredate,'yyyy') FROM emp;hiredata VARCHAR2(4);a80 number:=0;a81 number:=0;a82 number:=0;a87 number:=0;beginopen guangbiao01;LOOPfetch guangbiao01 INTO hiredata;EXIT when guangbiao01%notfound...
2016-04-05