Embed PL/SQL Blocks in a Program such as JDBC and Pro*C/C++.
The JDBC or Pro*C/C++ precompiler treats a PL/SQL block like a single embedded SQL statement.
Therefore, you can place a PL/SQL block anywhere in a program that you can place an SQL statement.
For example, use the following two steps to execute a JDBC program with PL/SQL blocks, MyJDBC.java: