LOG()

Description: Returns the natural logarithm of x (base e).

Examples:

  • LOG(7.389056) returns 2.000000.

  • LOG(-2) returns NULL.

See also: EXP(), LOG10(), POWER()

Get Sams Teach Yourself MySQL in 21 Days, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.