Parse a string
499195Jun 6 2007 — edited Jun 6 2007Hi All,
I have a procedure which has the following parameters
PROCEDURE order_service (p_organization_in IN VARCHAR2,
p_account_reference_in IN VARCHAR2)
first parameter is sent as a string separated by | delimited which can have from one to many values. I need to be able to parse the string down in my IF condition check for this variable below where i am building a WHERE clause to be passed to a dynamic SELECT statement. My requirement is i should separate the values which are delimited in this string and add quotes and put it in a IN clause along with the WHERE.
How do i acheive this. Can this be done by using SUBSTR or INSTR or combination of both. If so can you share it.
Thanks in advance