Operator
|
Purpose
|
Example
|
+ -
|
Denotes a positive or negative expression. These are unary operators.
|
SELECT * FROM emp WHERE comm = -1;
|
* /
|
Multiplies, divides. These are binary operators.
|
UPDATE emp SET sal = sal + sal * 0.10;
|
+ -
|
Adds, subtracts. These are binary operators.
|
SELECT sal + comm FROM emp WHERE empno > 100;
|