---------MAIN BLOCK STARTS--------------------------------------
DECLARE
v_num NUMBER := 1;
BEGIN
DBMS_OUTPUT.PUT_LINE (V_NUM);
-- SUB BLOCK STARTS------------------------------
DECLARE
v_num2 NUMBER := 2;
BEGIN
DBMS_OUTPUT.PUT_LINE (V_NUM2);
END;
-- SUB BLOCK ENDS-----------------------------------
END;
-----MAIN BLOCK ENDS-------------------------------
|