I have a bit of a problem. I have a table with names, IDs and different geometry like so:
ID | Name| RealID| Geometry|
==========================================
1 | Hampshire | 3 | 0762453...
2 | Hampshire | 3 | 0156245...
3 | Salt Lake | 2 | 312455...
4 | Hampshire | 3 | 016422....
Select * from table where RealID = any(:listOfIds)
Select * from table where RealID IN (any(:listofids))
You can try the following syntax
SELECT * FROM table WHERE RealID in (listofids)
for example:
SELECT * FROM table WHERE RealID in (3,2,6....)
You can tr this also:
SELECT * FROM table WHERE FIND_IN_SET('3', RealID);