Oracle 报错ORA-00904:标示符无效 (百度了没有解决 )
Oracle 报错ORA-00904:标示符无效 (百度了没有解决 )
create or replace procedure raisesalary(eno in number)as
--定义一个变量保存涨前的薪水
psal emp.sal%type;
begin
--得到员工涨前的薪水
select sal into psal from emp where empno=eno;
--给该员工涨100
update emp set sal=sal+100 where empno=eno;
--需不需要commit?
--注意:一般不在存储过程或者存储函数中,执行commit和rollback
--打印
dbms_output.put_line('涨前:'||psal||' 涨后:'||(psal+100));
end;
调试时 :