Pass comma separated number to IN clause in Stored Procedure
问题 I have a stored procedure which takes a varchar parameter called P_LOCATIONS in Oracle. This locations parameter has location id's that are comma separated. In database locationId is a number. Following sql query throws an Invalid number when there are more than one locations. I understand that because of comma its not able to convert a varchar into a number. How can I achieve this? create or replace PROCEDURE GET_RAW_DATA ( P_LOCATIONS IN VARCHAR2, Results OUT SYS_REFCURSOR )AS BEGIN select