Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to create a function/procedure which can take optional parameter?

145998Nov 26 2002 — edited Nov 26 2002
Hi,
I want to create a function or a procedure which can take optional parameters. For example, I want to create fun1() or fun1(param1) like this. Only one function will act differently when different number of parameters are passed to it. Something like the substr() function in oracle. It can be called with 2 parameters, as well as three parameters.
Thanks in advance,
Kiran

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Dec 24 2002
Added on Nov 26 2002
3 comments
90,144 views