Our Recommendation for You Search your Query, You can find easily. for example search by book name or course name or any other which is related to your education

label name

PHP

Oracle Functions

Oracle Functions


Oracle has many built-in functions.

Oracle String Functions

FunctionDescription
ASCIIReturns the number code that represents the specified character
ASCIISTRConverts a string in any character set to an ASCII string using the database character set
CHRReturns the character based on the number code
COMPOSEReturns a Unicode string
CONCATAllows you to concatenate two strings together
Concat with ||Allows you to concatenate two or more strings together
CONVERTConverts a string from one character set to another
DECOMPOSEAccepts a string and returns a Unicode string
DUMPReturns a varchar2 value that includes the datatype code, the length in bytes, and the internal representation of the expression
INITCAPSets the first character in each word to uppercase and the rest to lowercase
INSTRReturns the location of a substring in a string
INSTR2Returns the location of a substring in a string, using UCS2 code points
INSTR4Returns the location of a substring in a string, using UCS4 code points
INSTRBReturns the location of a substring in a string, using bytes instead of characters
INSTRCReturns the location of a substring in a string, using Unicode complete characters
LENGTHReturns the length of the specified string
LENGTH2Returns the length of the specified string, using UCS2 code points
LENGTH4Returns the length of the specified string, using UCS4 code points
LENGTHBReturns the length of the specified string, using bytes instead of characters
LENGTHCReturns the length of the specified string, using Unicode complete of characters
LOWERConverts all letters in the specified string to lowercase
LPADPads the left-side of a string with a specific set of characters
LTRIMRemoves all specified characters from the left-hand side of a string
NCHRReturns the character based on the number code in the national character set
REGEXP_INSTRReturns the location of a regular expression pattern in a string
REGEXP_REPLACEAllows you to replace a sequence of characters in a string with another set of characters using regular expression pattern matching
REGEXP_SUBSTRAllows you to extract a substring from a string using regular expression pattern matching
REPLACEReplaces a sequence of characters in a string with another set of characters
RPADPads the right-side of a string with a specific set of characters
RTRIMRemoves all specified characters from the right-hand side of a string
SOUNDEXReturns a phonetic representation (the way it sounds) of a string
SUBSTRAllows you to extract a substring from a string
TRANSLATEReplaces a sequence of characters in a string with another set of characters
TRIMRemoves all specified characters either from the beginning or the end of a string
UPPERConverts all letters in the specified string to uppercase
VSIZEReturns the number of bytes in the internal representation of an expression

Oracle Numeric Functions

FunctionDescription
ABSReturns the absolute value of a number
ACOSReturns the arc cosine of a number
ASINReturns the arc sine of a number
ATANReturns the arc tangent of a number
ATAN2Returns the arc tangent of n and m
AVGReturns the average value of an expression
BITANDReturns an integer representing an AND operation on the bits of expr1 and expr2
CEILReturns the smallest integer value that is greater than or equal to a number
COSReturns the cosine of a number
COSHReturns the hyperbolic cosine of a number
COUNTReturns the count of an expression
EXPReturns e raised to the power of number
FLOORReturns the largest integer value that is equal to or less than a number
GREATESTReturns the greatest value in a list of expressions
LEASTReturns the smallest value in a list of expressions
LNReturns the natural logarithm of a number
LOGReturns the natural logarithm of a number to a specified base
MAXReturns the maximum value of an expression
MEDIANReturns the median of an expression
MINReturns the minimum value of an expression
MODReturns the remainder of n divided by m
POWERReturns m raised to the nth power
REGEXP_COUNTCounts the number of times that a pattern occurs in a string
REMAINDERReturns the remainder of m divided by n
ROUNDReturns a number rounded to a certain number of decimal places
ROWNUMReturns a number that represents the order that a row is
SIGNReturns a value indicating the sign of a number
SINReturns the sine of a number
SQRTReturns the square root of a number
SUMReturns the summed value of an expression
TANReturns the tangent of a number
TANHReturns the hyperbolic tangent of n
TRUNCReturns a number truncated to a certain number of decimal places

Oracle Date Functions

FunctionDescription
ADD_MONTHSReturns a date with a specified number of months added
CURRENT_DATEReturns the current date in the time zone of the current SQL session as set by the ALTER SESSION command
CURRENT_TIMESTAMPReturns the current date and time in the time zone of the current SQL session as set by the ALTER SESSION command
DBTIMEZONEreturns the database time zone as a time zone offset or a time zone region name
EXTRACTExtracts a value from a date or interval value
LAST_DAYReturns the last day of the month based on a date value
LOCALTIMESTAMPReturns the current date and time in the time zone of the current SQL session as set by the ALTER SESSION command
MONTHS_BETWEENReturns the number of months between date1 and date2
NEW_TIMEConverts a date from time zone1 to a date in time zone2
NEXT_DAYReturns the first weekday that is greater than a date
ROUNDReturns a date rounded to a specific unit of measure
SESSIONTIMEZONEReturns the current session's time zone as a time zone offset or a time zone region name
SYSDATEReturns the current system date and time on your local database
SYSTIMESTAMPReturns the current system date and time (including fractional seconds and time zone) on your local database
TRUNCReturns a date truncated to a specific unit of measure
TZ_OFFSETReturns the time zone offset of a value