03_Begin块

来源:互联网 发布:python可以用来做什么 编辑:程序博客网 时间:2024/06/10 09:25
declare       v_i number := 1;       v_j number := 2;begin  --begin块中可以再嵌套Begin,类似try/catch中再try/catch的原理。  begin    dbms_output.put_line('Begin嵌套块中的内容');        if v_j = v_j then       dbms_output.put_line('相等');    end if;  exception    when others then      null;  end;end;