Check the error : Compile Error « PL SQL « Oracle PL / SQL






Check the error

  
SQL>
SQL>
SQL> -- function with no return type
SQL>
SQL>
SQL>  create or replace
  2    function no_return_type as
  3    begin
  4      return null;
  5    end no_return_type;
  6    /

Warning: Function created with compilation errors.

SQL>
SQL>  show errors
Errors for FUNCTION NO_RETURN_TYPE:

LINE/COL ERROR
-------- -----------------------------------------------------------------
1/25     PLS-00103: Encountered the symbol "AS" when expecting one of the
         following:
         ( return compress compiled wrapped

SQL>


           
         
    
  








Related examples in the same category

1.Check error for procedure
2.Check error form stored procedure
3.PLS-00306: wrong number or types of arguments in call
4.PLS-00363: expression '3' cannot be used as an assignment target
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