Sign in
apache
/
hive
/
master
/
.
/
hplsql
/
src
/
test
/
queries
/
local
/
exception_divide_by_zero.sql
blob: f7660071fe053fdcc8f85ee60ba8e6ceb7e321c8 [
file
]
DECLARE
booknum int
;
total int
;
percent
int
;
BEGIN
SET
booknum
=
10
;
SET
total
=
0
;
SET
percent
=
booknum
/
total
;
EXCEPTION
WHEN
OTHERS
THEN
DBMS_OUTPUT
.
PUT_LINE
(
'Correct'
);
END
;