I have to pass a list to a stored procedure which is selected by user.
That list I have as a string at java end.
Example: String list="123,467,980";
Now if I take this string to stored procedure as it is then how would it work.
I cannot use it as mentioned below:
select * from table_name where code in (list_var)
So can anyone guide me that what would be best approach for achieving this functionality.