Using string comparison function with IF : IF : Control Flow Functions MySQL TUTORIALS


MySQL TUTORIALS » Control Flow Functions » IF »

 

Using string comparison function with IF


mysql>
mysql> SELECT IF(STRCMP('test','test1'),'no','yes');
+---------------------------------------+
| IF(STRCMP('test','test1'),'no','yes') |
+---------------------------------------+
| no                                    |
+---------------------------------------+
row in set (0.00 sec)

mysql>
mysql>
mysql>



Leave a Comment / Note


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

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Control Flow Functions
» IF