Quick Search:
 
 Oracle PL/SQL: SQL Code and SQL Error Messages Jump to:  
Category: >> Oracle PL/SQL >> SQL Code and SQL Error Messages  

<< lastnext >>

Snippet Name: SQL Code and SQL Error Messages

Description: Captures Oracle error codes and their associated messages.

Also see:
» Oracle Exception Handling
» PLSQL Errors

Comment: (none)

Language:
Highlight Mode: PLSQL
Last Modified: March 07th, 2009

SQL Code
 
NUMBER OF the most recent EXCEPTION raised BY PL/SQL. 0 IF none
 
SET serveroutput ON
 
BEGIN
  DBMS_OUTPUT.put_line(SQLCODE);
END;
/
 
 
SQL Errm
 
Error message associated WITH the specified code
 
SET serveroutput ON
 
BEGIN
  DBMS_OUTPUT.put_line(SQLERRM);
END;
/


 
   Home |    Search |    Code Library |    Sponsors |    Privacy |    Terms of Use |    Contact Us © 2003 - 2024 psoug.org