The PL/SQL Block
SQL> SQL> set serveroutput on SQL> declare 2 myNumber number := 1; 3 begin 4 myNumber := 1 + 1; 5 dbms_output.put_line( '1 + 1 = ' || to_char( myNumber ) || '!' ); 6 exception 7 when others then 8 dbms_output.put_line( 'We encountered an exception!' ); 9 end; 10 / 1 + 1 = 2! PL/SQL procedure successfully completed. SQL>