Mega Code Archive

 
Categories / Oracle PLSQL / Stored Procedure Function
 

This procedure will not compile, since it attempts to modify an IN parameter

SQL> CREATE OR REPLACE PROCEDURE IllegalModeIn (p_In IN NUMBER) AS   2   BEGIN   3     p_In := 7;   4   END IllegalModeIn;   5   / Warning: Procedure created with compilation errors. SQL> SQL> SQL> show errors Errors for PROCEDURE ILLEGALMODEIN: LINE/COL ERROR -------- ----------------------------------------------------------------- 3/4      PL/SQL: Statement ignored 3/4      PLS-00363: expression 'P_IN' cannot be used as an assignment          target SQL> SQL>