Loading lesson path
Concept visual
Start at both ends
Return the natural logarithm of 2:
SELECT LOG(2);The LOG() function returns the natural logarithm of a specified number, or the logarithm of the number to the specified base.
and
functions.
number )
base, number )
Required. A number. Must be greater than 0 base The base of number. Must be greater than 1
From MySQL 4.0
Return the natural logarithm of 4 to a specified base (2):
SELECT LOG(2, 4);❮ MySQL Functions