第13章plsql命名对象13道题.docxVIP

  • 120
  • 0
  • 约6.48千字
  • 约 8页
  • 2020-12-29 发布于山东
  • 举报
创建一个存储过程,以员工号为参数,输出该员工的工资。 create or replace procedure pro_showsal( p_empno employees.employee_id%type) as v_sal employees.salary%type; begin select salary into v_sal from employees where employee_id=p_empno; dbms_output.put_line(v_sal); exception when no_data_found then dbms_output.put_line(there is not such an employees); end; begin pro_showsal(100); end; 创建一个存储过程,以员工号为参数,修改该员工的工资。若该员工属于10号部门,则工资增加140元;若属于20号部门,则工资增加200元;若属于30号部门,则工资增加250元;若属于其他部门,则工资增长300元。 create or replace procedure pro_updatesal( p_empno employees.employee_id%type) as v_deptno employees.department_id

文档评论(0)

1亿VIP精品文档

相关文档