I want to create a procedure which accepts an array list for IN operator.
For eg:
Create or Replace Procedure Test (a Arraylist)
{
Select * from table1 where col1 IN (Arraylist)
}
If the procedure is called using two parameters then the query should be
Select * from table1 where col1 IN (val1,val2)
If the procedure is called using one parameter then the query should be
Select * from table1 where col1 IN (val1)