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!

Procedures/Functions with variable number of parameters

847441Apr 9 2011 — edited Apr 9 2011
Hello guys,

I have a need of doing a PL/SQL Procedure / Function with variable number of parameters. I need to do something like this:


function_name (parameter1 in varchar2, parameter2 in number, array_like_input in extrange_type, array_like_output out extrange_type)

Where:

- parameter1: a usual varchar2 parameter
- parameter2: a usual number parameter
- array_like_input: a parameter where I can pass 2, 3 or 20 parameters
- array_like_output: a parameter where I can get 2, 3 or 20 parameters

Has any of you any advice on how to do that?

I've been reading about varray and about user defined types, but I were wondering what's the better way to do this.

Thanks a lot and have a nice weekend,

Luis Miguel
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 7 2011
Added on Apr 9 2011
4 comments
841 views