最赞回答 / qq_骑着蜗牛去旅行_03471935
那是从部门表dept查的,不是从员工表emp查的,部门表的部门名称和部门编号都是唯一的,你可以查一下:select * from dept;
2016-06-17
IF
(countSal+pesal*1.1)<50000 THEN
UPDATE emp SET sal = sal*1.1 WHERE empno = pempno;
countEmp:=countEmp + 1;
countSal := countSal + pesal * 0.1;
ELSE dbms_output.put_line('条件不足,涨不了');
EXIT;
(countSal+pesal*1.1)<50000 THEN
UPDATE emp SET sal = sal*1.1 WHERE empno = pempno;
countEmp:=countEmp + 1;
countSal := countSal + pesal * 0.1;
ELSE dbms_output.put_line('条件不足,涨不了');
EXIT;
2016-06-03