Hello World

吞风吻雨葬落日 欺山赶海踏雪径

0%

oracle inner exception

oracle inner exception example

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
DECLARE
-- Local variables here
i INTEGER;
BEGIN
-- Test statements here
dbms_output.put_line('start...');
i := 0;
LOOP
EXIT WHEN i > 5;
BEGIN
dbms_output.put_line(to_char(i) || '.do something...');
IF i = 3 THEN
i := i / 0;
END IF;

EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line('inner exception!');
END;
i := i + 1;
dbms_output.put_line('do other things...');
END LOOP;
dbms_output.put_line('end...');
END;