From front end User will enter (multiple) employee number as (123,456,789) to search in the application. The way User enters the
employee numbers is pre-defined like above.
This value has to be searched in a Oracle database table in a PL/SQL package.
I have coded like below to format the entered value so that it can be searched in the SQL WHERE condition.
lv_where := REPLACE( REPLACE( REPLACE( '(123,456,789)', ',', ''',''' ), '(', '(''') , ')', ''')')
Output is : ('123','456','789')
Is there a better way?