2 Day Developer > Using PL/SQL > Entering and Running PL/SQL... > Running PL/SQL Code in the ...
Running PL/SQL Code in the SQL Commands Page |
Previous |
Next |
To enter and run PL/SQL code in the SQL Commands page:
Log in to the Database Home Page. See "Logging in to the Database Home Page".
On the home page, click the SQL icon to display the SQL page.
Click the SQL Commands icon to display the SQL Commands page.
On the SQL Commands page, enter the PL/SQL code in Example: Using a Simple PL/SQL Block. Note that some of the lines of code are terminated with a semi colon (;) and the entire code unit is terminated with a slash (/). The slash is required when running the PL/SQL in a SQL script or at the SQL Command Line prompt, but it is optional on the SQL Commands page.
Click the Run button to run the PL/SQL code. If necessary, select (highlight) only the PL/SQL code block before clicking the Run button. Any comments outside the PL/SQL code block are not legal in the SQL Commands page.
If you want to save the PL/SQL code for future use, click the Save button.
In the Name field, enter a name for the saved PL/SQL code. You can also enter an optional description. Click the Save button to save the SQL.
To access saved PL/SQL code, click the Saved SQL tab, and select the name of the saved PL/SQL code that you want to access.
See Also: Oracle Database Express Edition Application Express User's Guide for detailed information about using SQL Commands |