Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit
I'm trying to write a procedure in which there are a large number of input parameters passed as s type:
type t_a is object
(col1 varchar2(10),
col2 number,
col3 varchar2(50)
...);
procedure find_obj(p_a in t_a)
...
I have a database table:
column_name column_value
col1 'xx'
col2 45
What I need to be able to do is match col1 and col2 on the input with the values in the table and, if there is a match on these, return true. The values of col3, col4 etc are simply ignored if they're not in the table. There can be any combination of the columns in the database table. So, for example, we could have col7/col30 or col3/col9/col26.
It's impossible to do this just with "if" statements (there are too many possibilities). I essentially need to be able to do some sort of dynamic reference to the column names of the input record. This sort of thing is possible in Forms PL/SQL with NAME_IN and COPY but I was wondering if there was an equivalent in the database PL/SQL.
I'm trying to write a procedure in which there are a large number of input parameters passed as s type:
type t_a is object
(col1 varchar2(10),
col2 number,
col3 varchar2(50)
...);
procedure find_obj(p_a in t_a)
...
I have a database table:
column_name column_value
col1 'xx'
col2 45
What I need to be able to do is match col1 and col2 on the input with the values in the table and, if there is a match on these, return true. The values of col3, col4 etc are simply ignored if they're not in the table. There can be any combination of the columns in the database table. So, for example, we could have col7/col30 or col3/col9/col26.
It's impossible to do this just with "if" statements (there are too many possibilities). I essentially need to be able to do some sort of dynamic reference to the column names of the input record. This sort of thing is possible in Forms PL/SQL with NAME_IN and COPY but I was wondering if there was an equivalent in the database PL/SQL.