Skip to content

LOG10

  • x: The numerical value whose base 10 logarithm will be computed. This value must be greater than zero.
SELECT LOG10(1000) AS Logarithm_Base_10;
3

In the provided example, the LOG10() function in MySQL is used to calculate the base-10 logarithm of the number 1000. The output shows that the base-10 logarithm of 1000 is 3.