Use log : LOG « Math « SQL / MySQL






Use log

/*
mysql> select LOG(20);
+----------------+
| LOG(20)        |
+----------------+
| 2.995732273554 |
+----------------+
1 row in set (0.00 sec)

mysql> select LOG(20, 40);
+-----------------+
| LOG(20, 40)     |
+-----------------+
| 1.2313782131598 |
+-----------------+
1 row in set (0.01 sec)


*/  
select LOG(20);
select LOG(20, 40);
           
       








Related examples in the same category

1.Use LOG10 and LOG2