I'm developing a stored procedure and i'm stuck in a step. In some point i have this:
stmt := stmt || ' AND Risk.Code IN (:4) ';
How can i make risk.code do a in when :4 is a text variable that contains the list of values "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20"