Using Logical AND Operator with NULL value : AND « Logic Operator « MySQL Tutorial






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

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

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

mysql>








8.2.AND
8.2.1.Logical AND(AND, &&)
8.2.2.Using Logical AND Operator with NULL value
8.2.3.Using AND to link two conditions