编写pl/sql时,报错
/* 写一个简单的PL/SQL */ declare a int:=300; b int:=200; c number; begin c:=(a+b)/(a-b); dbms_output.put_line(c); exception when zero_divide then dbms_output.put_line('除数不许为零'); end;

这里需要注意:字符串用单引号,不是双引号
We only live once, and time just goes by.

浙公网安备 33010602011771号