News:

Build a stunning handcrafted website with IT Acumens

Main Menu

MYSQL : Arithmetic Operations

Started by VelMurugan, May 23, 2009, 09:03 PM

Previous topic - Next topic

VelMurugan

Arithmetic Operations :

    In MySQL, we have the usual Arithmetic operations. Lets see the arithmetic operators one by one with an example.

Addition (+) :

mysql> select 5+5;
-->  10

Subtraction (-) :

mysql> select 25-18;
-->  7

Multiplication (*) :

mysql> select 4*4;
-->  16

Division (/) :

mysql> select 5/3;
-->  1.67