CASE with case-sensitve comparison : CASE : Control Flow Functions MySQL TUTORIALS


MySQL TUTORIALS » Control Flow Functions » CASE »

 

CASE with case-sensitve comparison


mysql>
mysql> SELECT CASE BINARY 'B'
    ->        WHEN 'a' THEN 1
    ->        WHEN 'b' THEN 2
    -> END;
+---------------------------------------------------------------------+
| CASE BINARY 'B'
       WHEN 'a' THEN 1
       WHEN 'b' THEN 2
END |
+---------------------------------------------------------------------+
|                                                                NULL |
+---------------------------------------------------------------------+
row in set (0.00 sec)

mysql>
mysql>



Leave a Comment / Note


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

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Control Flow Functions
» CASE