using a calculator in mysql
Wednesday, August 3rd, 2005need to perform some maths operations while working on mysql ?
Do you use bc or some other application.
Here is how my friend Nir hacked mysql …
mysql> 816-528
ERROR 1064: You have an error in your SQL syntax near ‘816-528′ at line 1
mysql> select 816-528 from any_table_name;
| 288 |
| 288 |
| 288 |
+———+
834 rows in set (0.01 sec)
mysql> select distinct(816-528) from any_table_name;
+———–+
| (816-528) |
+———–+
| 288 |
+———–+
1 row in set (0.01 sec)
Bingo!
its good enough for +. - . *, / etc. you rock Nir.
Todays link : Google Ranking Factors
and BSE@7800 






