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)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…