📜  plsql 块 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:52.858000             🧑  作者: Mango

代码示例1
set serveroutput on;
DECLARE
   v_result NUMBER;
BEGIN
   v_result := 1 / 0;
   DBMS_OUTPUT.PUT_LINE( v_result );
EXCEPTION
   WHEN ZERO_DIVIDE THEN
      DBMS_OUTPUT.PUT_LINE( SQLERRM );
END;