In Oracle, the CEIL()
function returns the smallest integer that is greater than or equal to its argument.
Category: Oracle
FLOOR() Function in Oracle
In Oracle, the FLOOR()
function returns the largest integer equal to or less than its argument.
LOG() Function in Oracle
In Oracle, the LOG()
function returns the logarithm, base n2
, of n1
, where n2
is the first argument and n1
is the second.
LN() Function in Oracle
In Oracle, the LN()
function returns the natural logarithm of its argument, where the argument is greater than 0
.
In other words, it returns the base-e logarithm of its argument.
The number e, also known as Euler’s number, is a mathematical constant approximately equal to 2.71828.
Continue readingATAN2() Function in Oracle
In Oracle, the ATAN2()
function returns the arctangent (inverse tangent) of its two arguments.
ATAN() Function in Oracle
In Oracle, the ATAN()
function returns the arctangent (inverse tangent) of its argument.
In other words, it returns the value whose tangent is the argument.
Continue readingBITAND() Function in Oracle
In Oracle, the BITAND()
function returns a bitwise AND
of its two arguments.
SET NULL: Specify a String to Return Whenever a Null Value Occurs in SQLcl / SQL*Plus
SQLcl and SQL*Plus are command line interfaces for working with Oracle Database.
By default, they return an empty string whenever null
occurs as a result of a SQL SELECT
statement.
However, you can use SET NULL
to specify a different string to be returned. Here I specified that the string null
should be returned.
How to Configure Syntax Highlighting in SQLcl
Starting with SQLcl version 21.2, we can now configure SQLcl for syntax highlighting.
That means that the code you write in SQLcl can be color coded, based on the syntax highlighting rules you apply.
Continue readingHow to Create a login.sql File for SQLcl
When using SQLcl (Oracle’s command line interface), you can create a login.sql
file, and have it run each time you run SQLcl.
This allows you to have commands executed each time you run SQLcl. For example, you can specify your formatting preferences in the login.sql
file, set up aliases, etc.
Here I show you how to create a login.sql
file and how to make it run each time you run SQLcl.