I have a column 'PHOTOIDS' of type CLOB which has a comma separated list of numbers. I need to query for all records which have a certain set of 'photoIds' in it. What is the best way to query THE CLOB column for a list of numbers.
I am looking for something semantically similar to
SELECT * FROM TABLE_NAME WHERE PHOTOIDS IN (1,2,3)