An Interest In:
Web News this Week
- March 21, 2024
- March 20, 2024
- March 19, 2024
- March 18, 2024
- March 17, 2024
- March 16, 2024
- March 15, 2024
October 23, 2021 03:29 pm GMT
Original Link: https://dev.to/wangonya/you-can-use-your-database-as-a-simple-calculator-3fdi
You can use your database as a simple calculator
Saw this in the MySQL docs. I'm assuming this only works for relational databases.
I don't know if it's very useful but definitely interesting.
MariaDB[] > SELECT SIN(PI()/4), (4+1)*5;+------------------+---------+| SIN(PI()/4) | (4+1)*5 |+------------------+---------+| 0.70710678118655 | 25 |+------------------+---------+1 row in set (0.02 sec)
postgres=# SELECT SIN(PI()/4), (4+1)*5; sin | ?column?--------------------+---------- 0.7071067811865475 | 25(1 row)
Original Link: https://dev.to/wangonya/you-can-use-your-database-as-a-simple-calculator-3fdi
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To