loading

MySQL Operators

MySQL Arithmetic Operators

OperatorDescriptionExample
+AddTry it
SubtractTry it
*MultiplyTry it
/DivideTry it
%ModuloTry it

MySQL Bitwise Operators

OperatorDescription
&Bitwise AND
|Bitwise OR
^Bitwise exclusive OR

MySQL Comparison Operators

OperatorDescriptionExample
=Equal toTry it
>Greater thanTry it
<Less thanTry it
>=Greater than or equal toTry it
<=Less than or equal toTry it
<>Not equal toTry it

MySQL Compound Operators

OperatorDescription
+=Add equals
-=Subtract equals
*=Multiply equals
/=Divide equals
%=Modulo equals
&=Bitwise AND equals
^-=Bitwise exclusive equals
|*=Bitwise OR equals

MySQL Logical Operators

OperatorDescriptionExample
ALLTRUE if all of the subquery values meet the conditionTry it
ANDTRUE if all the conditions separated by AND is TRUETry it
ANYTRUE if any of the subquery values meet the conditionTry it
BETWEENTRUE if the operand is within the range of comparisonsTry it
EXISTSTRUE if the subquery returns one or more recordsTry it
INTRUE if the operand is equal to one of a list of expressionsTry it
LIKETRUE if the operand matches a patternTry it
NOTDisplays a record if the condition(s) is NOT TRUETry it
ORTRUE if any of the conditions separated by OR is TRUETry it
SOMETRUE if any of the subquery values meet the conditionTry it
Share this Doc

MySQL Operators

Or copy link

Explore Topic