In Oracle/PLSQL, the greatest function returns the greatest value in a list of expressions. The syntax for greatest function is
greatest( expr1, expr2, ... expr_n )).
How can I write my function with unlimit parameter like this:
myfunction(param1 , param2,...param_n)
You could simulate var args using a table type as the parameter.
You can then use this type as the last parameter of the function:
Client code would call it with:
or