Name | Description |
AND, && | Logical AND |
NOT, ! | Negates value |
||, OR | Logical OR |
XOR | Logical XOR |
In SQL, all logical operators evaluate to TRUE, FALSE, or NULL (UNKNOWN).
In MySQL, these are implemented as 1 (TRUE), 0 (FALSE), and NULL.
8.1.Introduction | ||||
8.1.1. | Logical Operators | |||
8.1.2. | Logical operator with parenthesis |