LOG10()
Description
LOG10(X) returns the base-10 logarithm of X.
Syntax
1. > LOG10(X)
Arguments
| Arguments | Description |
|---|---|
| X | Required. Any numeric data type supported now. |
Examples
1. drop table if exists t1;
2. create table t1(a float, b float);
3. insert into t1 values(10000,3784.159);
4. insert into t1 values(2738,682.325);
6. mysql> select log10(a),log10(b) from t1;
7. +-------------------+--------------------+
8. | log10(a) | log10(b) |
9. +-------------------+--------------------+
10. | 4 | 3.577969368581086 |
11. | 3.437433443797971 | 2.8339912916439594 |
12. +-------------------+--------------------+
13. 2 rows in set (0.00 sec)
