建立存储过程,以部门编号为参数,查询并返回该部门平均工资,以及该部门中比该部门平均工资高的员工信息

create or replace procedure proc_show_emp(p_deptno employees.departmentid%type) as   v_sal employees.salary%type; begin   select avg(salary)     into v_sal     from employees    where departmentid = p
相关文章
相关标签/搜索