Mega Code Archive

 
Categories / MySQL Tutorial / Introduction
 

You can use mysql as a simple calculator

mysql>  SELECT SIN(PI()/4), (4+1)*5; +------------------+---------+ | SIN(PI()/4)      | (4+1)*5 | +------------------+---------+ | 0.70710678118655 |      25 | +------------------+---------+ 1 row in set (0.00 sec) mysql>