Jump to: navigation, search

Mysql LOG10

From w3cyberlearnings

Contents

MySQL LOG10 Function

This function returns the base-10 logarithm of X.

Syntax LOG10

X is a number.

LOG10(X);

Example 1

mysql> SELECT LOG10(100);
+------------+
| LOG10(100) |
+------------+
|          2 |
+------------+
1 row in set (0.00 sec)

Example 2

mysql> SELECT LOG10(1000);
+-------------+
| LOG10(1000) |
+-------------+
|           3 |
+-------------+
1 row in set (0.00 sec)

Related Links


Navigation
Web
SQL
MISC
References