IFNULL() with NULL and NOT NULL value : IFNULL : Control Flow Functions MySQL TUTORIALS


MySQL TUTORIALS » Control Flow Functions » IFNULL »

 

IFNULL() with NULL and NOT NULL value


mysql>
mysql> SELECT IFNULL(NULL,'The value is Null');
+----------------------------------+
| IFNULL(NULL,'The value is Null') |
+----------------------------------+
| The value is Null                |
+----------------------------------+
row in set (0.00 sec)

mysql>
mysql> SELECT IFNULL(10,'The value is Null');
+--------------------------------+
| IFNULL(10,'The value is Null') |
+--------------------------------+
10                             |
+--------------------------------+
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
» IFNULL