I just want to know is there any functionality in Oracle to return default values from a procedure or a function? I know that we can pass default values to a procedure.
No.
A default value cannot be assigned to the OUT
parameter. An OUT parameter is a pass by value method. The parameter must be assigned with a value within the subprogram body. This value is then passed to the host environment, from where the subprogram has been called.
In a function, the value to be returned must be within the body.
I suggest you could declare a constant , and then use it either as OUT parameter in a procedure or RETURN it in a function.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.