C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
MySQL LOG() FunctionThe Log() is a Math function of MySQL. This function is used to return either the natural logarithm of the given number if it has one parameter or specified base logarithm number if it has two parameters. Syntaxselect Log(number); Select log(base, number); Parameters:number : It is the number for getting natural logarithm value. base: It is the base of the natural logarithm. ReturnsThis function returns the natural logarithm of the given number. Note:
Example 1Select log(5); Output: Example 2Select log(-25); Output: Example 3Select log(45.2); Output:
Next TopicMySQL Math
|