Search notes:

SQL*Plus: WHENEVER SQLERROR

WHENEVER SQLERROR EXIT

whenever sqlerror exit has the same parameters as the ordinary exit command.
Exit SQL*Plus as soon as an error is encountered (but print the error message):
whenever sqlerror exit

select q'[This statement is executed]'       txt from dual;

select 1 from "no such table";

select q'[This statement won't be executed]' txt from dual;
Github repository Oracle-patterns, path: /SQLPlus/whenever/sqlerror/exit.sql

WHENEVER SQLERROR CONTINUE

See also

SQL*Plus

Index