Oracle LOG

Function Description

Function LOG returns the logarithm of x base y. Argument x MUST be greater than 0 or 1.

Examples

SELECT LOG(2, 10)
  FROM dual;

Result: 3,32192809488736

SELECT LOG(10, 10)
  FROM dual;

Result: 1

SELECT LOG(10, 250)
  FROM dual;

Result: 2,39794000867204
This entry was posted in Oracle SQL Functions. Bookmark the permalink.