The BINARY operator converts a string to an array of bytes and compares the results byte by byte. This only requests to the variable preceding the BINARY reserved word. I don't understand why you want to convert it into BINARY when you can compare it at a string level?
I am not sure about this statement, but you can try:
Quote:
|
select user_name, password from tb1users where binary password = 'pw';
|
You will get the list of users who are using same password.