Arithmetic Operators
Arithmetic operators perform basic arithmetic on two values.
-
+
Adds two numerical values
-
-
Subtracts two numerical values
-
*
Multiplies two numerical values
-
/
Divides two numerical values
-
%
Gives the modulo of two numerical values
-
|
Performs a bitwise
OR
on two integer values-
&
Performs a bitwise
AND
on two integer values-
<<
Performs a bitwise left shift on an integer value
-
>>
Performs a bitwise right shift on an integer value
Get Managing & Using MySQL, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.