PLSQL程序执行错误无效语句

时间:2012-01-15 16:49:24

标签: oracle plsql ora-00900

我正在关注PL / SQL http://www.plsqltutorial.com/plsql-procedure/的教程。我在apex上使用以下代码创建了过程:

CREATE OR REPLACE PROCEDURE adjust_salary(
    in_employee_id IN EMPLOYEES.EMPLOYEE_ID%TYPE,
    in_percent IN NUMBER
) IS
BEGIN
    UPDATE EMPLOYEES
    SET salary = salary + salary * in_percent / 100
    WHERE employee_id = in_employee_id;
END;

然而,当我尝试运行时

exec adjust_salary(200,5);

我收到了错误

ORA-00900: invalid SQL statement.  

问题是什么以及如何解决?

1 个答案:

答案 0 :(得分:2)

我认为您的PL / SQL没有任何问题。您应该检查是否安装了Procedural选项:

http://www.techonthenet.com/oracle/errors/ora00900.php