Entering and Executing PL/SQL Code |
PL/SQL code can be entered and executed from the SQL Workshop or the SQL*Plus command line.
In the SQL Workshop, you can save your SQL statements as a script file that can be run as a SQL script with SQL*Plus.
If you use SQL*Plus, simply type in each line of code at the SQL prompt. For information on using SQL*Plus, see SQL*Plus: Usage Information.
You can create a text file of the PL/SQL code and run that as a SQL script. Using a script makes correcting mistakes much easier because you only need to make the necessary updates to correct the problem rather than retyping all the PL/SQL code. For information on running SQL scripts from SQL*Plus, see Running Scripts From SQL*Plus.