create or replace function cal(a number,b number) return number is
c number;
begin
c:=a/b;
return c;
exception
when ZERO_DIVIDE then
DBMS_OUTPUT.PUTLINE('divide by zero'); -- 错误的地方.
end;
/DBMS_OUTPUT.PUT_LINE('divide by zero');
--- (这里有一条横线.)
c number;
begin
c:=a/b;
return c;
exception
when ZERO_DIVIDE then
DBMS_OUTPUT.PUTLINE('divide by zero'); -- 错误的地方.
end;
/DBMS_OUTPUT.PUT_LINE('divide by zero');
--- (这里有一条横线.)
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货