Pages

Ads 468x60px

Sunday, 3 June 2012

PL SQL Program For Pre Defined Error.


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

Total Pageviews