PLS-00363: expression '3' cannot be used as an assignment target : Compile Error « PL SQL « Oracle PL / SQL

Oracle PL / SQL
1. Aggregate Functions
2. Analytical Functions
3. Char Functions
4. Constraints
5. Conversion Functions
6. Cursor
7. Data Type
8. Date Timezone
9. Hierarchical Query
10. Index
11. Insert Delete Update
12. Large Objects
13. Numeric Math Functions
14. Object Oriented Database
15. PL SQL
16. Regular Expressions
17. Report Column Page
18. Result Set
19. Select Query
20. Sequence
21. SQL Plus
22. Stored Procedure Function
23. Subquery
24. System Packages
25. System Tables Views
26. Table
27. Table Joins
28. Trigger
29. User Previliege
30. View
31. XML
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Oracle PL / SQL » PL SQL » Compile Error 
PLS-00363: expression '3' cannot be used as an assignment target
    
SQL>
SQL> 
SQL> CREATE OR REPLACE PROCEDURE ModeInOut (p_InOut IN OUT NUMBERIS
  2
  3     v_LocalVariable  NUMBER := 0;
  4   BEGIN
  5     IF (p_InOut IS NULLTHEN
  6       DBMS_OUTPUT.PUT_LINE('p_InOut is NULL');
  7     ELSE
  8       DBMS_OUTPUT.PUT_LINE('p_InOut = ' || p_InOut);
  9     END IF;
 10
 11     v_LocalVariable := p_InOut;
 12
 13     p_InOut := 8;
 14
 15     DBMS_OUTPUT.PUT('At end of ModeInOut: ');
 16     IF (p_InOut IS NULLTHEN
 17       DBMS_OUTPUT.PUT_LINE('p_InOut is NULL');
 18     ELSE
 19       DBMS_OUTPUT.PUT_LINE('p_InOut = ' || p_InOut);
 20     END IF;
 21   END ModeInOut;
 22    /

Procedure created.

SQL>
SQL>
SQL>
SQL> show errors
No errors.
SQL>
SQL>
SQL> DECLARE
  2     v_InOut NUMBER := 1;
  3   BEGIN
  4     -- Call ModeInOut with a variable, which should be modified.
  5     DBMS_OUTPUT.PUT_LINE('Before calling ModeInOut, v_InOut = ' ||v_InOut);
  6     ModeInOut(v_InOut);
  7     DBMS_OUTPUT.PUT_LINE('After calling ModeInOut, v_InOut = ' || v_InOut);
  8   END;
  9   /
Before calling ModeInOut, v_InOut = 1
p_InOut = 1
At end of ModeInOut: p_InOut = 8
After calling ModeInOut, v_InOut = 8

PL/SQL procedure successfully completed.

SQL>
SQL>
SQL>
SQL> BEGIN
  2     ModeOut(3);
  3   END;
  4   /
   ModeOut(3);
           *
ERROR at line 2:
ORA-06550: line 2, column 12:
PLS-00363: expression '3' cannot be used as an assignment target
ORA-06550: line 2, column 4:
PL/SQL: Statement ignored


SQL>
SQL>
SQL>
SQL> BEGIN
  2     ModeIn(3);
  3   END;
  4   /
Inside ModeIn: p_In = 3
p_In = 3

PL/SQL procedure successfully completed.

SQL>
SQL>

   
    
    
    
  
Related examples in the same category
1. Check the error
2. Check error for procedure
3. Check error form stored procedure
4. PLS-00306: wrong number or types of arguments in call
5. Set the PLSQL_WARNING level to DISABLE:ALL
6. This example illustrates the PLS-483 error
7. This package will not compile because the specification and body do not match.
8. Build an anonymous block that will trigger an error.
9. how DDL doesn't work with PL/SQL
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.