Application Express User's Guide > Managing Database Objects w... > Managing Functions > Creating a Function
Creating a Function |
Previous |
Next |
To create a function:
On the Database Home Page, click the Object Browser icon.
Object Browser appears.
Click Create.
From the list of object types, select Functions.
Enter a function name, specify the return datatype, and click Next.
Define the arguments and click Next (optional):
Argument Name
Argument Type (datatype)
Default (value)
To add additional arguments, click Add Argument.
Enter P/LSQL block you want to use as the function body and click Next.
To link to SQL Commands, click Command Processor. To view the previously defined arguments, click Defined Arguments.
A confirmation page appears. To view the SQL used to create the function, click Show SQL.
Click Finish.