Mega Code Archive

 
Categories / PostgreSQL / Math Functions
 

Log(10, 12 0) AS log_12, log(3, 12 0) AS log 12, base 3

postgres=# postgres=# SELECT log(10, 12.0) AS log_12, postgres-#        log(3, 12.0) AS "log 12, base 3";          log_12         |   log 12, base 3 ------------------------+--------------------  1.07918124604762482772 | 2.2618595071429149 (1 row) postgres=#