what array or collection type to use [message #600436] |
Wed, 06 November 2013 12:27 |
gentleman777us
Messages: 122 Registered: April 2005
|
Senior Member |
|
|
Hi,
Requirement: I need to come up with a procedure where I could pass category, subcategory, criteria1 and criteria 2 as an array( or if there is any other better way). This array should take multiple rows of information ex: first row = agriculture, farms, michigan, detroit;
second row: energy, power plants, colorado, denver etc.
My question is what is the best way to declare this variable as string_array or any other type and I need to access the values of this variable in my procedure.
an example would be greatly appreciated.
Thanks
|
|
|
|
|
|
Re: what array or collection type to use [message #600441 is a reply to message #600440] |
Wed, 06 November 2013 13:08 |
gentleman777us
Messages: 122 Registered: April 2005
|
Senior Member |
|
|
Actually there is no need of sample sql statements. All I need to do is how can you pass a row of information atleast 4 different values to a variable and print them in the body
like
procedure p1(i_criteria strin_array) as
begin
for i_criteria in..first i_criteria.last
loop
dbms_output.put_line(the string array values are '||i_criteria);
end loop;
end p1;
The output should be
agriculture, farms, michigan, detroit
energy, power plants, colorado, denver
Hope Iam clear.
|
|
|
|
|
|
|
|
|
|