SQL FunctionsNumeric FunctionsLOG2On this pageLOG2Returns the base-2 logarithm of x. If x is less than or equal to 0.0E0, the function returns NULL.SyntaxLOG2( <x> )ExamplesSELECT LOG2(65536);┌─────────────┐│ log2(65536) │├─────────────┤│ 16 │└─────────────┘