How To Use Log Function In Oracle
Description
Log function returns the logarithm of n base m in Oracle/PLSQL. Log function returns decimal value.
Syntax
Example
- Select Log (12, 15)
- From Dual;
Example
- Select Log (2, 18)
- From Dual;
Example
- Select Log (125, 2)
- From Dual;
Log function can be used in following Oracle versions in Oracle/PLSQL-
Oracle 8i, Oracle 9i, Oracle 10g, Oracle 11g, Oracle 12c.
Summary