I have a scenario in which i need to pass ‘name ids’ in CSV format string as bind parameter to a SQL Query, and check for if any of that id is present in a table. Its kind of XOR of array of ids with the table name-id in a column in table .
I am not able to get how this can be done(array to column comparision). Could you point me in that direction?
I cannot use Java , or PL/Sql as my query would be used by another team which does processing in runtime.
if you bind multiple values, not single string,
you can make a table from your csv values:
And use a statement like this to make the xor
Hope this helps you.
UPDATE: I found here a query making a table from a value in csv format: