Connor and Chris will both be at AI World from October 12 to October 17 , the premier Oracle conference of 2025. If you're in Vegas, please come say Hi or pop into our sessions
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