Топ-100
 
RDBMS Type: MySQL
Topic

Syntax:
LOG10(X)

Returns the base-10 logarithm of X. If X is less than or equal to
0.0E0, the function returns NULL and a warning "Invalid argument for
logarithm" is reported.

URL: https://dev.mysql.com/doc/refman/8.0/en/mathematical-functions.html

Example

mysql> SELECT LOG10(2);
-> 0.30102999566398
mysql> SELECT LOG10(100);
-> 2
mysql> SELECT LOG10(-100);
-> NULL