Home > Managing Database Objects w... > Managing Functions > Creating a Function
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 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.