undefine 员工号; declare v_sal emp.sal%type; begin select sal into v_sal from emp where empno = &&员工号; if v_sal < 3000then update emp set sal = sal + 200where empno = &&员工号; endif; dbms_output.put_line('工资为:'||v_sal); exceptionwhenno_data_foundthen dbms_output.put_line('没有该员工!'); end;