The executable section needs at least one line of code to be valid. : Begin End Block « PL SQL « Oracle PL / SQL






The executable section needs at least one line of code to be valid.

  
SQL>
SQL> declare
  2    myNumber_variable number := 50;
  3  begin
  4    -- NULL; means do nothing.
  5    null;
  6  end;
  7  /

PL/SQL procedure successfully completed.

SQL>
SQL>

   
  








Related examples in the same category

1.Three sections - declarative, executable, and exception.
2.An example of an anonymous block
3.Block-Based Development
4.The PL/SQL Block
5.Block Nesting
6.Five level nested statement
7.no executable code
8.Building Blocks of PL/SQL
9.A Nested Block Example
10.Block with name
11.Outer Block name and inner block name
12.This script demonstrates the structure of a block
13.Nested block
14.Plain SQL and PL/SQL program