Using Logical OR operator with NULL value : OR « Logic Operator « MySQL Tutorial






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

mysql> SELECT 1 || NULL;
+-----------+
| 1 || NULL |
+-----------+
|         1 |
+-----------+
1 row in set (0.02 sec)

mysql> SELECT NULL || NULL;
+--------------+
| NULL || NULL |
+--------------+
|         NULL |
+--------------+
1 row in set (0.00 sec)

mysql>
mysql>








8.4.OR
8.4.1.Logical OR (OR( || ))
8.4.2.Using Logical OR operator with NULL value
8.4.3.Using OR to link two conditions