📅  最后修改于: 2022-03-11 15:05:29.239000             🧑  作者: Mango
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;