How do you use Mysql as a calculator...
by ArulKumar[ Edit ] 2008-06-11 11:52:55
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....