PL SQL Program For Pre Defined Error.
declare
a number(3);
b number(3);
c number(3);
begin
a:=&a;
b:=&b;
c:=a/b;
dbms_output.put_line('The Value of '||a||' / '||b||' is '||c);
exception
when zero_divide then
dbms_output.put_line('DIVIDE BY ZERO ERROR');
end;
0 comments:
Post a Comment