bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MySQL LN() Function

Concept visual

MySQL LN() Function

Pointer walk
two pointers
leftright102132436485116
left=0
right=6
1
3

Start at both ends

Example

Return the natural logarithm of 2:

SELECT LN(2);

Definition and Usage

The LN() function returns the natural logarithm of a number.

Note:

See also the LOG()

and

Exp()

functions.

Syntax

Ln(

number )

Parameter Values

Parameter

Description number

Required. A number. Must be greater than 0

Technical Details

Works in:

From MySQL 4.0

More Examples

Example

Return the natural logarithm of 1:

SELECT LN(1);

Previous

❮ MySQL Functions

Next

Previous

MySQL LEAST() Function

Next

MySQL LOG() Function