2 Day Developer > Using Procedures, Functions... > Managing Stored Procedures ... > Creating a Procedure or Fun...
Creating a Procedure or Function With the SQL Commands Page |
Previous |
Next |
You can use the SQL Commands page to create stored procedures or functions.
To create a procedure or function with 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 for the PL/SQL procedure or function. You can use the code in Example: Creating a Simple Stored Procedure.
Select (highlight) the code for creating the procedure or function, then click the Run button to create the procedure or function.
Select (highlight) the code for calling the procedure or function, then click the Run button to call the procedure or function.
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 code.
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.
In the previous steps you created a procedure. For information about how to execute or call a procedure, see "Calling Stored Procedures or Functions".