by d_r · 16y ago · 0 comments
WHERE column IN ('1, 2, 3')
How can this ever be expected to work, unless, of course your column is literally '1, 2, 3'? Seems strange to blame MySQL for it. ("MySQL is buggy because it cannot infer meaning from my arbitrary string literals!")http://stackoverflow.com/questions/4037145/mysql-how-to-sele...
http://stackoverflow.com/questions/3946831/mysql-where-probl...
http://stackoverflow.com/questions/3734161/mysql-select-wher...
None actually "blames" MySQL for that. The article just describes what comes to the beginning developer's mind first, and tells the correct way to do that.