If we have only Out parameter in our PLSQL procedure.Then can we use function instead of procedure as function is also able to return the value. And if we still using procedure then we use this instead of function.
I hope I am able to convey the right question which I want to ask?
Some important difference between both are as following:
Function:
SELECT
, UPDATE
, DELETE
)DML
operations are not allowed in itProcedure:
OUT parameters
)DML
operations are allowed within procedures.