I am interested in how to write mysql query like this => if some column includes multiple exactly same data, how to check if that column value equal to something . for example I have table with column named “local” and I’m checking like that =>
SELECT (IF(SELECT local FROM database WHERE local='something'),"Equal","NOT Equal");
This gives me error => ERROR 1242 (21000) Subquery returns more than 1 row
How to write this checking code?
1 Answer