Oracle Tutorial

What is Oracle
SQL Keywords

Oracle Wildcards

Oracle Wildcards

Oracle Aliases

Oracle Aliases

MySQL Tutorial

MySQL Tutorial

PL/SQL Tutorial

PL/SQL Tutorial

Oracle Interview Questions

Oracle Interview Questions and Answers


Oracle String/Char Functions

Oracle functions are built into Oracle and are available for use in various appropriate Oracle statements. You can also create your own function using PL/SQL.

Function Description
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.
CONCATConcatenate two strings together.
Concat with ||Concatenate 2 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.
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 characters.
LOWERConverts all letters in the specified string to lowercase.
LPADPads the left-side of a string with a specific set of characters (when string1 is not null).
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_REPLACEReplace a sequence of characters in a string with another set of characters using regular expression pattern matching.
REGEXP_SUBSTRExtract 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 (when string1 is not null).
RTRIMRemoves all specified characters from the right-hand side of a string.
SOUNDEXReturns a phonetic representation (the way it sounds) of a string.
SUBSTRExtract 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.