Curriculum
Course: SQL
Login

Curriculum

SQL

SQL References

0/80

MySQL Functions

0/139

SQL Server Functions

0/84

SQL Quick Ref

0/1
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);