The AskTOM team is taking a break over the holiday season, so we're not taking questions or responding to comments. Please have a happy and safe festive season and as always, thanks for being a member of the AskTOM community.
Thanks for the question, Jeyaram.
Asked: October 23, 2019 - 10:42 am UTC
Last updated: October 23, 2019 - 4:25 pm UTC
Version: 12.2.0.1.0
Viewed 1000+ times
create or replace trigger catch_errors after servererror on database begin dbms_output.put_line ( 'An error happened!' ); end catch_errors; / create table t ( c1 int ); insert into t values ( sysdate ); SQL> insert into t values ( sysdate ); An error happened! insert into t values ( sysdate ) * ERROR at line 1: ORA-00932: inconsistent datatypes: expected NUMBER got DATE
Check out more PL/SQL tutorials on our LiveSQL tool.
PL/SQL reference manual from the Oracle documentation library