Question

Je suis un tutoriel sur PL / SQL http://www.plsqltutorial.com/plsql-procédure / .J'ai créé une procédure avec le code suivant sur l'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;

Cependant, quand j'essaye de courir

exec adjust_salary(200,5);

J'ai une erreur

ORA-00900: invalid SQL statement.  

Quel est le problème et comment le résoudre?

Était-ce utile?

La solution

Je ne vois rien de mal avec votre PL / SQL.Vous devriez vérifier si l'option procédurale est installée:

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top