Home > Managing Database Objects w... > Managing Functions > Creating a Function
Previous |
Next |
To create a function:
On the Workspace home page, click SQL Workshop and then Object Browser.
Object Browser appears.
Click Create.
From the list of object types, select Function.
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 PL/SQL block you want to use as the function body and click Next.
To link to SQL Commands, click SQL Commands.
A confirmation page appears.
Click Finish.