Logic Operator MySQL Tutorial

Name Description
AND, &&Logical AND
NOT, !Negates value
||, ORLogical OR
XORLogical 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.