LOG
Calculate logarithm. This function returns the natural logarithm of a number, or the logarithm to a specified base if two arguments are provided.
Last updated
Was this helpful?
Was this helpful?
SELECT LOG(2,16);
+-----------+
| LOG(2,16) |
+-----------+
| 4 |
+-----------+
SELECT LOG(3,27);
+-----------+
| LOG(3,27) |
+-----------+
| 3 |
+-----------+
SELECT LOG(3,1);
+----------+
| LOG(3,1) |
+----------+
| 0 |
+----------+
SELECT LOG(3,0);
+----------+
| LOG(3,0) |
+----------+
| NULL |
+----------+