时间:2021-07-01 10:21:17 帮助过:4人阅读
1 SQL> set serveroutput on; 2 SQL> 3 SQL> declare 4 2 a int:=10; 5 3 b int:=200; 6 4 c number; 7 5 begin 8 6 c:=(a+b)/(a-b); 9 7 dbms_output.put_line(c); 10 8 exception 11 9 when zero_divide then 12 10 dbms_output.put_line(‘除数不许为零‘); 13 11 end; 14 12 / 15 16 -1.10526315789473684210526315789473684211 17 18 PL/SQL procedure successfully completed 19 20 SQL>View Code
——————————————
——————————————————————————————————————————————————————————
Pl/SQL 编程
标签:结构 space height def bms img complete declare roc