编写pl/sql时,报错_ide编写pl/sql时,报错_ide_02
/*
写一个简单的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;
View Code

编写pl/sql时,报错_sql_03

这里需要注意:字符串用单引号,不是双引号

We only live once, and time just goes by.