Sometimes we might want to print the value of a PL/SQL local variable.
A “quick-and-dirty” way is to store it as the sole tuple of some table and use a PL/SQL statement to print the table with a SELECT command.
Another way is to define a bind variable, which is the only kind that may be printed with a PRINT command.
Bind variables are the kind that must be prefixed with a colon in PL/SQL statements, such as :new.
The steps are as follows: