May 2020
Beginner
564 pages
14h 9m
English
Oracle does error handling with the EXCEPTION statement. The following syntax is an example of how Oracle handles errors:
DECLAREerr_num NUMBER;err_msg VARCHAR2(200);BEGINsql statements go here EXCEPTIONconditions for exception go here WHEN OTHERS THENerr_num := SQLCODE;err_msg := SUBSTR(SQLERRM, 1, 200);INSERT INTO errors VALUES (err_num, err_msg);END;
To learn more about error handling in Oracle, take a look at the Further reading section.
Read now
Unlock full access