Case-insensitive nature of string comparisons: : String Compare « String « SQL / MySQL






Case-insensitive nature of string comparisons:

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

   
    
    
    
    
    
  








Related examples in the same category

1.Compare String in where clause
2.String comparisons are performed from left to right, one character at a time:
3.The two strings '4200' and '4200.0' are not the same:
4.String comparisons in MySQL are not case sensitive by default:
5.To make a string comparison case sensitive, cast (convert) one of the strings to binary form by using the BINA
6.To make a string comparison not case sensitive, convert both strings to the same lettercase using UPPER( ) or
7.NULL values fail comparisons both with < and with >=