bueno en php existe
strcasecmp()
y en mysql el operador se llama binary, usese de la siguiente manera
Código PHP:
mysql> SELECT 'a' = 'A', 'a' = BINARY 'A';
+-----------+------------------+
| 'a' = 'A' | 'a' = BINARY 'A' |
+-----------+------------------+
| 1 | 0 |
+-----------+------------------+
1 row in set (0.03 sec)
mysql> SELECT 'a' = 'a ', 'a' = BINARY 'a ';
+------------+-------------------+
| 'a' = 'a ' | 'a' = BINARY 'a ' |
+------------+-------------------+
| 1 | 0 |
+------------+-------------------+
1 row in set (0.00 sec)