개인적인 정리

[Oracle] LOG() 본문

DB/ORACLE

[Oracle] LOG()

yeon.Biju 2020. 4. 8. 21:46

오라클 LOG()

 

LOG()

   - 

 

LOG(n2, n1)

의 형태

 

LOG returns the logarithm, base n2, of n1. The base n1 can be any positive value other 0 or 1 and n2 can be any positive value. 

 

This function takes as arguments any numeric data type or any nonnumeric data type that can be implicitly converted to a numeric data type. If any argument is BINARY_FLOAT, or BINARY_DOUBLE, then the function returns BINARY_DOUBLE. Otherwise the function returns NUMBER.

 

SQL> SELECT LOG(10, 100) FROM DUAL ;

   --> 2

'DB > ORACLE' 카테고리의 다른 글

[Oracle] MAX()  (0) 2020.04.09
[Oracle] LTRIM()  (0) 2020.04.08
[Oracle] LPAD()  (0) 2020.04.08
[Oracle] LOWER()  (0) 2020.04.08
Oracle LOCALTIMESTAMP()  (0) 2020.04.08
Oracle LNNVL()  (0) 2020.04.08
Oracle LN()  (0) 2020.04.08
Oracle LISTAGG()  (0) 2020.04.08
Comments