Assuming I got a long list of comma-separated values:
one, two, three, .., hundred
and I need to use them in a WHERE IN
like this:
SELECT * FROM tags WHERE IN (one, two, three, .., hundred)
then is there any way I can "tell" MySQL to wrap each of the values in quotes, or at least make it treat each of the values as strings? Without wrapping the values in quotes, the WHERE IN doesn't work.
Note: Surely there are plenty of ways to modify the list of values beforehand and then pass it to the query, but I'd like to know if there's a MySQL way to achieve the same effect.