oracle11g - Oracle in array parameter and output array -


i have task create oracle function accepts input array parameter , returns array, called in asp.net. have far, code compiles don't know how test in toad, , might need improvements, can provide guidance on how call function sending array? additional feedback welcome.

create or replace package pii_xref_pkg type array_onecol table of varchar2(10); function getssn (     p_valuelist in array_onecol )    return sys_refcursor; end pii_xref_pkg; / create or replace package body pii_xref_pkg function getssn(p_valuelist in array_onecol) return sys_refcursor t_refcursor sys_refcursor; begin     open t_refcursor         select piiref.*         pii_xref piiref         left outer join table(p_valuelist) u on u.column_value = piiref.value         (u.column_value not null or p_valuelist(1) null);     return t_refcursor; end getssn; end pii_xref_pkg; / 

***note: using oracle 11g.


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -