Syntax
LOG10(X)
Purpose
LOG10() returns the logarithm of X to base 10.
Examples
obclient> SELECT LOG10(1000);
+-------------+
| LOG10(1000) |
+-------------+
| 3 |
+-------------+
1 row in set
obclient> SELECT LOG10(-1000);
+--------------+
| LOG10(-1000) |
+--------------+
| NULL |
+--------------+
1 row in set, 1 warning