I hope, this is not a very stupid question, but since some hours, I'm looking for a solution, but without success.
I have a table with name of cities:
cities.name
Berlin
New York
Hamburg
...
And I have a string: "Bonn New York Chicago"
Now, I would like to pick all "known" cities from this string. But as you can see, I'm not able to split this string to an array (because of "New York"). So "FIND_IN_SET" is not suitable for me. The function "LIKE" is working in the "wrong direction".
So I would need something like %cities.name% EKIL $string :-D
Does anyone have an idea, how I can handle this problem without using PHP?
I hope, I'm not missing the forest for the trees...
Thanks a lot for your help!
Tobias
WHERE name IN ('Berlin', 'New York', 'Hamburg')