Oracle PL/SQL/PL SQL/Arithmetic Operators
The basic four arithmetic operators in action
SQL>
SQL> --The basic four arithmetic operators in action.
SQL> SET SERVEROUTPUT ON
SQL> BEGIN
2 DBMS_OUTPUT.PUT_LINE(4 * 2); --Multiplication
3 DBMS_OUTPUT.PUT_LINE(24 / 3); --Division
4 DBMS_OUTPUT.PUT_LINE(4 + 4); --Addition
5 DBMS_OUTPUT.PUT_LINE(16 - 8); --Subtraction
6 END;
7 /
8
8
8
8
PL/SQL procedure successfully completed.
SQL>