I have the following query:
SELECT `user_pwd` FROM (`td_user`) WHERE UPPER(user_name) = 'simmyp' AND `status` = 'A'
In the db, user_name is stored as simmyp. The above query should not yield any result as SIMMYP != simmyp,but it displays records for simmyp. Why is it so? I am using utf8_general_ci.
Note: I would be using upper on both sides, but I would like to know how upper functions in the above case.