• Skip to primary navigation
  • Skip to main content

Tech Honey

The #1 Website for Oracle PL/SQL, OA Framework and HTML

  • Home
  • HTML
    • Tags in HTML
    • HTML Attributes
  • OA Framework
    • Item in OAF
    • Regions in OAF
    • General OAF Topics
  • Oracle
    • statement
    • function
    • clause
    • plsql
    • sql
You are here: Home / Oracle / function / LOG Function in Oracle SQL – PLSQL

LOG Function in Oracle SQL – PLSQL

November 5, 2012 by techhoneyadmin

The LOG function in Oracle SQL / PLSQL is used to return the logarithmic value of a number to a base.

Syntax for the LOG function in Oracle SQL / PLSQL is:

SELECT LOG(n,m)
FROM table_name;

  • ‘n’ must be a positive number
  • ‘m’ must be a positive number except 0 and 1.

Example 1:

SELECT LOG(20,10)
FROM DUAL; 

Will return “0.768621786840241”


Example 2:

SELECT LOG(20,20)
FROM DUAL; 

Will return “1”


Filed Under: function Tagged With: how to use log function in oracle database query, how to use log function in oracle plsql, how to use log function in oracle sql, log function in oracle plsql, log function in oracle sql, LOGPLSQL, syntax and example of log function in oracle database query, syntax and example of log function in oracle plsql, syntax and example of log function in oracle sql, using log function in oracle database query, using log function in oracle plsql, using log function in oracle sql

Copyright © 2023 · Parallax Pro on Genesis Framework · WordPress · Log in