- 70
- 0
- 约3.65千字
- 约 4页
- 2017-08-23 发布于河南
- 举报
课程名称成绩评定实验项目名称指导教师
学生姓名 学号 专业实验项目类型实验地点实验时间 年 月 日掌握 PL/SQL 程序设计的基本知识
2、掌握 PL/SQL 中 SELECT 语句和 DML 语句的正确使用方法根据用户输入的部门编号实现在 PL/SQL 中逐行显示 emp 表中该部门员工的工资级别。工资级别是:当工资为空时,为空,工资在 1000 元以下的为低,在 1000 和 3000之间的为中,高于 3000 元的为高要有异常处理该编号不存在。create or replace procedure review_ep
(v_deptno in dept.deptno%type)is
cursor c1 is select * from emp
where emp.deptno=v_deptno;
record1 emp%rowtype;
deptno_not_found exception;
begin
open c1;
fetch c1 into record1;
if(not c1%found) then raise deptno_not_found;
end if;
while c1%found loop
if nvl(record1.sal,0)1000 then
dbms_
原创力文档

文档评论(0)