C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
| MySQL LOG2() FunctionThe log2() is a Math function of MySQL. This function is used to get the base-2 logarithm of given number. Syntax
 select log2(number) Parameter:
 number: It is the number for base-2 logarithm value. Returns:
 Example 1
 select log2(3); Output:   Example 2select log2(45.3); Output:   
Next TopicMySQL Math
 |