函数 的 创建

来源:互联网 发布:淘宝悬浮导航 编辑:程序博客网 时间:2024/06/05 16:31

create or replace function get_sal(id employees.employee_id%type) return number issal employees.salary%type:=0;beginselect salary into sal from employeeswhere employee_id = id;return sal;end get_sal;/