create or replace produce promotemp(empno in number)as--定义一个变量接受键盘输入,忘记怎么写了 pempno --定义两个光标,保存工资比admin高的记录,比admin低的记录 c_up referrence course ; c_low referrence course;begain select * into c_up from emp where emp.empno=&pempno and emp.sal > (select ..... ); select * into c_low from emp where emp.empno=&pempno and emp.sal < (select .....); select * into loop exit where 没有记录 if 高 then 涨工资 else 降工资 end loop;end;/呀!不会写~~