In Oracle Database, the TO_DATE()
function converts its argument to a value of DATE
data type.
How to Add the Meridiem Indicator (AM/PM) to a Time Value in Oracle
When using the TO_CHAR()
function to format a datetime value in Oracle Database, you can add the meridiem indicator (AM/PM) by simply adding either AM
or PM
to your format model.
Oracle then displays the appropriate meridiem indicator, depending on whether the time value is AM or PM.
You can provide it in any uppercase or lowercase, and with or without dots (e.g. AM
, A.M.
am
, a.m
, etc). Oracle will then display the meridiem indicator as specified.
RAWTONHEX() Function in Oracle
In Oracle Database, the RAWTONHEX()
function converts a raw value to hexadecimal.
It’s similar to the RAWTOHEX()
function, except that its value is always returned in the national character set.
RAWTOHEX() Function in Oracle
In Oracle Database, the RAWTOHEX()
function converts a raw value to hexadecimal.
HEXTORAW() Function in Oracle
In Oracle Database, the HEXTORAW()
function converts hexadecimal to a raw value.
DECOMPOSE() Function in Oracle
In Oracle Database, the DECOMPOSE()
function returns the result of applying one of the Unicode decompositions to its string argument. The decomposition is determined by the second (optional) argument.
It’s the opposite of the COMPOSE()
function.
COMPOSE() Function in Oracle
In Oracle Database, the COMPOSE()
function returns the result of applying the Unicode canonical composition, as described in the Unicode Standard definition D117, to its string argument.
It’s the opposite of the DECOMPOSE()
function.
5 Functions to Extract the Week Number from a Date in MariaDB
Below are 5 functions that enable you to return the week number from a date in MariaDB. Four return just the week, and one returns both the week and year combined.
Continue readingCAST() Function in Oracle
In Oracle Database, the CAST()
function converts its argument to a different data type.
More specifically, it lets you convert built-in data types or collection-typed values of one type into another built-in data type or collection type.
Continue readingHow to Change your Session’s Currency Symbol in Oracle
In Oracle Database, there are a few different NLS parameters that determine how currency is displayed when using functions like TO_CHAR()
to format a number as a currency.
NLS_CURRENCY
specifies the string to use as the local currency symbol for theL
number format element.NLS_ISO_CURRENCY
determines what to use for theC
format element.NLS_DUAL_CURRENCY
specifies what to use for theU
format element.