String comparisons are not case sensitive unless one of the operands is a binary string : LIKE : String Functions MySQL TUTORIALS


MySQL TUTORIALS » String Functions » LIKE »

 

String comparisons are not case sensitive unless one of the operands is a binary string


mysql>
mysql> SELECT 'abc' LIKE 'ABC';
+------------------+
'abc' LIKE 'ABC' |
+------------------+
|                |
+------------------+
row in set (0.00 sec)

mysql>
mysql> SELECT 'abc' LIKE BINARY 'ABC';
+-------------------------+
'abc' LIKE BINARY 'ABC' |
+-------------------------+
|                       |
+-------------------------+
row in set (0.00 sec)

mysql>



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo String Functions
» LIKE