As you should notice, DUMP is an overloaded function. It has 3 overloads.
So, you can simulate the same in your code.
function myDump (x Varchar2) return varchar2 is begin return('string') ; end ; function myDump (x number) return varchar2 is begin return('integer') ; end ; function myDump (x date) return varchar2 is begin return('date') ; end ;
The above code may not work correctly, but should give you an idea of how to solve this problem.
I hope this fulfills your requirements.
Note; You can put these functions in a package and use them accordingly.
Ali Avcı
source share