LOG
Calculate logarithm. This function returns the natural logarithm of a number, or the logarithm to a specified base if two arguments are provided.
Syntax
LOG(X), LOG(B,X)Description
Examples
SELECT LOG(2);
+-------------------+
| LOG(2) |
+-------------------+
| 0.693147180559945 |
+-------------------+
SELECT LOG(-2);
+---------+
| LOG(-2) |
+---------+
| NULL |
+---------+Last updated
Was this helpful?

