I have a procedure
PROCEDURE Pro
(
P_IDs VARCHAR2
);
I want to select from a table where IDs match one of the IDs sent in P_IDs
SELECT * FROM Tbl WHERE ID IN ( P_IDs )
P_IDs looks like
'1,2,3,4,5'
What are my options? I think I saw once a way to do it without using custom functions to split the string, I wanted something clean an easy to use.
I found it here:
I need to convert it to a XMLTable:
Example usage: