Curriculum
Course: MYSQL
Login

Curriculum

MYSQL

MySQL References

0/140
Text lesson

LOG10

Example

Provide the logarithm base 10 of 2.

SELECT LOG10(2); 

Definition and Usage

The LOG10() function calculates the base-10 logarithm of a number.

Note: Also refer to the LOG() function for related operations.

Syntax

LOG10(number)

Parameter Values

Parameter

Description

number

A number greater than 0

Technical Details

Works in: From MySQL 4.0

More Examples

Example

Provide the logarithm base 10 of 4.5.

SELECT LOG10(4.5);