1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
SQL> whenever sqlerror exit failure
SQL> exec if (1=2) then raise_application_error(-20001,'erreur'); end if
PL/SQL procedure successfully completed.
SQL> @script
...
SQL>
SQL> exec if (1=1) then raise_application_error(-20001,'erreur'); end if
BEGIN if (1=1) then raise_application_error(-20001,'erreur'); end if; END;
*
ERROR at line 1:
ORA-20001: erreur
ORA-06512: at line 1
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options |
Partager