Arithmetic Operator
|
Operator
|
Meaning
|
|
+ (Add)
|
Addition
|
|
- (Subtract)
|
Subtraction
|
|
* (Multiply)
|
Multiplication
|
|
/ (Divide)
|
Division
|
|
% (Modulo)
|
Returns the integer remainder of a
division. For example, 12 % 5 = 2 because the remainder of 12 divided by 5 is
2.
|
Logical Operator
|
Operator
|
Meaning
|
|
TRUE if all of a set of
comparisons are TRUE.
|
|
|
TRUE if both Boolean expressions
are TRUE.
|
|
|
TRUE if any one of a set of
comparisons are TRUE.
|
|
|
TRUE if the operand is within a
range.
|
|
|
TRUE if a subquery contains any
rows.
|
|
|
TRUE if the operand is equal to
one of a list of expressions.
|
|
|
TRUE if the operand matches a
pattern.
|
|
|
Reverses the value of any other
Boolean operator.
|
|
|
TRUE if either Boolean expression
is TRUE.
|
|
|
TRUE if some of a set of
comparisons are TRUE.
|
Bitwise Operators
Comparison Operators
|
Operator
|
Meaning
|
|
Equal to
|
|
|
Greater than
|
|
|
Less than
|
|
|
Greater than or equal to
|
|
|
Less than or equal to
|
|
|
Not equal to
|
|
|
Not equal to (not ISO standard)
|
|
|
Not less than (not ISO standard)
|
|
|
Not greater than (not ISO
standard)
|
Compound operators
|
Operator
|
Link
to more information
|
Action
|
|
+=
|
Adds some amount to the original
value and sets the original value to the result.
|
|
|
-=
|
Subtracts some amount from the
original value and sets the original value to the result.
|
|
|
*=
|
Multiplies by an amount and sets
the original value to the result.
|
|
|
/=
|
Divides by an amount and sets the
original value to the result.
|
|
|
%=
|
Divides by an amount and sets the
original value to the modulo.
|
|
|
&=
|
Performs a bitwise AND and sets
the original value to the result.
|
|
|
^=
|
Performs a bitwise exclusive OR
and sets the original value to the result.
|
|
|
|=
|
Performs a bitwise OR and sets the
original value to the result.
|
Unary Operators
|
Operator
|
Meaning
|
|
Numeric value is positive.
|
|
|
Numeric value is negative.
|
|
|
Returns the ones complement of the
number.
|
Assignment Operator
= is used to assign value from right side (variable, constant) to left variable