Using IF with float point value : IF : Control Flow Functions MySQL TUTORIALS


MySQL TUTORIALS » Control Flow Functions » IF »

 

Using IF with float point value


mysql>
mysql>
mysql> SELECT IF(0.1,1,0);
+-------------+
| IF(0.1,1,0|
+-------------+
|           |
+-------------+
row in set (0.00 sec)

mysql>
mysql> SELECT IF(0.1<>0,1,0);
+----------------+
| IF(0.1<>0,1,0|
+----------------+
|              |
+----------------+
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 Control Flow Functions
» IF