Scalar Functions
Scalar functions receive an input value, and based on this input value the result is delivered. This function can be used with constant values, the column elements of a table (view) as well as with compound value expressions.
Example
Scalar functions usually expect a special data type for their arguments. If it is not specified, then an implicit conversion of the data type is attempted, or an error message is displayed.
Numeric Function
Numeric functions are given a numeric value as input and typically deliver a numeric value as output.
The following are the numeric functions supported:
ACOS |
ATAN |
CEIL[ING] |
COSH |
DEGREES |
EXP |
LN |
LOG10 |
MOD |
POWER |
RAND[OM] |
SIGN |
SINH |
SQRT |
TAN |
TANH |
TO_CHAR (number) |
TO_NUMBER |
TRUNC[ATE] (number) |
String Functions
String functions can either return a string (for example, LPAD) or a numeric value (for example, LENGTH).
Date/Time Functions
Date/Time functions manipulate the DATE, TIMESTAMP, TIMESTAMP WITH LOCAL TIME ZONE, and INTERVAL data types.
Geospatial Functions
To analyze geospatial data, there are many functions available. For more information on geospatial data, refer to the Geospatial Data section.
ST_* |
Bitwise Function
Bitwise functions can compute bit operations on numerical values.
BIT_AND BIT_CHECK BIT_LROTATE BIT_LSHIFT BIT_NOT BIT_OR BIT_RROTATE BIT_RSHIFT BIT_SET BIT_TO_NUM BIT_XOR |
Conversion Functions
Conversion functions can be used to convert values to other data types.
CAST
CONVERT IS_* NUMTODSINTERVAL NUMTOYMINTERVAL TO_CHAR (datetime) TO_CHAR (number) TO_DATE TO_DSINTERVAL TO_NUMBER TO_TIMESTAMP TO_YMINTERVAL |
Functions for Hierarchical Queries
The following functions can be used in combination with CONNECT BY queries.
CONNECT_BY_ISCYCLE CONNECT_BY_ISLEAF LEVEL SYS_CONNECT_BY_PATH |
JSON Functions
JSON functions extract values from JSON objects stored as strings.
JSON_VALUE JSON_EXTRACT |
Other Scalar Functions
Those functions that cannot be allocated to one of the above categories are listed here.