SELECT l.name
FROM locations as l
WHERE
l.location_id =',2,32,'
the “,2,32,” values we get from another table. This query gives zero result, although there are values with location_id=2 and also for 32. Please help me how to use “,2,32,” to get result?
Assuming that you want to return values for ID 2 and 32 you can use this query:
INoperator allows you to specifymultiple-valuesin theWHEREclauseYou can also use
NOT INto eliminate certail ID’s and you can also add more id’s to it just by separating them with a comma..