How do you use Mysql as a calculator... - Mysql Views : 662
Tagged in : Mysql
Send mail vote down 0 vote down 0

We can use mysql as a simple calculator, just get into the mysql database enter the below query at command line.

mysql>select cos(pi()/2);
This command gives you the equivalent result on the screen.
We can even use the grouped expression like

mysql>select cos(pi()/2), (5*5)+5; This command gives you the result in two segments.

Just try by yourself.

You can try with various math expressions....
By - ArulKumar, On - 2008-06-11




    Login to add Comments .