I tried to use CF_SQL_ARRAY in the following but it is not working:
ColdFusion:
<cfset faq = ArrayNew(1)>
<cfset ArrayAppend(faq, "What are ColdFusion arrays")>
<cfset ArrayAppend(faq, "How to create a ColdFusion array?")>
<cfset ArrayAppend(faq, "What are two dimensional arrays?")>
<cfoutput>#faq[2]#</cfoutput>
<cfstoredproc procedure="p_cf_array" datasource="#Application.DSN_VAT#" username="vacdvl01" password="vacl33ds" debug="Yes">
<cfprocparam type="In" cfsqltype="CF_SQL_ARRAY" dbvarname="array_in" value="#faq#" null="No">
<cfprocparam type="Out" cfsqltype="CF_SQL_ARRAY" variable="array_set" dbvarname="array_out" null="No">
</CFSTOREDPROC>
<cfoutput>#array_set.size#</cfoutput>
Procedure:
create or replace procedure p_cf_array(array_in in in_array, array_out out out_array) is
begin
for i in 1 .. array_in.count
loop
-- Apply business logic here
dbms_output.put_line( array_in(i) );
array_out.extend( array_in(i));
end loop;
end p_cf_array;