{"id":19287,"date":"2021-08-17T08:35:54","date_gmt":"2021-08-16T22:35:54","guid":{"rendered":"https:\/\/database.guide\/?p=19287"},"modified":"2021-08-17T08:35:54","modified_gmt":"2021-08-16T22:35:54","slug":"oracle-string-functions-full-list","status":"publish","type":"post","link":"https:\/\/database.guide\/oracle-string-functions-full-list\/","title":{"rendered":"Oracle String Functions (Full List)"},"content":{"rendered":"\n<p>Below is a list of built-in string\/character functions that are available in Oracle Database.<\/p>\n\n\n\n<!--more-->\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Function<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code><a href=\"https:\/\/database.guide\/ascii-function-in-oracle\/\" data-type=\"post\" data-id=\"19203\">ASCII()<\/a><\/code><\/td><td>Returns the decimal representation in the database character set of the first character of its argument.<\/td><\/tr><tr><td><code><a href=\"https:\/\/database.guide\/chr-function-in-oracle\/\" data-type=\"post\" data-id=\"18931\">CHR()<\/a><\/code><\/td><td>Returns a character based on the code values provided as an argument.<\/td><\/tr><tr><td><code><a href=\"https:\/\/database.guide\/concat-function-in-oracle\/\" data-type=\"post\" data-id=\"18940\">CONCAT()<\/a><\/code><\/td><td>Performs a string concatenation on its arguments.<\/td><\/tr><tr><td><code><a href=\"https:\/\/database.guide\/initcap-function-in-oracle\/\" data-type=\"post\" data-id=\"18947\">INITCAP()<\/a><\/code><\/td><td>Returns its argument with the first letter of each word in uppercase, and all other letters in lowercase.<\/td><\/tr><tr><td><code><a href=\"https:\/\/database.guide\/instr-function-in-oracle\/\" data-type=\"post\" data-id=\"19210\">INSTR()<\/a><\/code><\/td><td>Searches for a substring in a given string, and returns an integer indicating the position of the first character of this substring.<\/td><\/tr><tr><td><code><a href=\"https:\/\/database.guide\/length-function-in-oracle\/\" data-type=\"post\" data-id=\"19223\">LENGTH()<\/a><\/code><\/td><td>R<meta charset=\"utf-8\">eturns the length of its argument. <meta charset=\"utf-8\">There are five separate functions; <code>LENGTH()<\/code>, <code>LENGTHB()<\/code>, <code>LENGTHC()<\/code>, <code>LENGTH2()<\/code>, and <code>LENGTH4()<\/code>. Each function calculates the length in a different way.<\/td><\/tr><tr><td><code><a href=\"https:\/\/database.guide\/lower-function-in-oracle\/\" data-type=\"post\" data-id=\"18951\">LOWER()<\/a><\/code><\/td><td>Returns its argument with all letters in lowercase.<\/td><\/tr><tr><td><code><a href=\"https:\/\/database.guide\/lpad-function-in-oracle\/\" data-type=\"post\" data-id=\"18969\">LPAD()<\/a><\/code><\/td><td>Pads the left part of a string with a certain character, to a specified number of characters.<\/td><\/tr><tr><td><code><a href=\"https:\/\/database.guide\/ltrim-function-in-oracle\/\" data-type=\"post\" data-id=\"18989\">LTRIM()<\/a><\/code><\/td><td>Trims the left part of a string. By default, it trims white space, but you can optionally specify a different character or characters to trim.<\/td><\/tr><tr><td><code><a href=\"https:\/\/database.guide\/nchr-function-in-oracle\/\" data-type=\"post\" data-id=\"19021\">NCHR()<\/a><\/code><\/td><td>Returns the character having the binary equivalent to its argument in the national character set.<\/td><\/tr><tr><td><code><a href=\"https:\/\/database.guide\/nls_initcap-function-in-oracle\/\" data-type=\"post\" data-id=\"19025\">NLS_INITCAP()<\/a><\/code><\/td><td>Similar to the&nbsp;<code><a href=\"https:\/\/database.guide\/initcap-function-in-oracle\/\">INITCAP()<\/a><\/code>&nbsp;function, except that it accepts a second argument that allows you to specify the collation.<\/td><\/tr><tr><td><code><a href=\"https:\/\/database.guide\/nls_lower-function-in-oracle\/\" data-type=\"post\" data-id=\"19054\">NLS_LOWER()<\/a><\/code><\/td><td>Similar to the&nbsp;<code><a href=\"https:\/\/database.guide\/lower-function-in-oracle\/\">LOWER()<\/a><\/code>&nbsp;function, except that it accepts a second argument that allows you to specify the collation.&nbsp;<\/td><\/tr><tr><td><code><a href=\"https:\/\/database.guide\/nls_upper-function-in-oracle\/\" data-type=\"post\" data-id=\"19058\">NLS_UPPER()<\/a><\/code><\/td><td>Similar to the&nbsp;<code><a href=\"https:\/\/database.guide\/upper-function-in-oracle\/\">UPPER()<\/a><\/code>&nbsp;function, except that it accepts a second argument that allows you to specify the collation.<\/td><\/tr><tr><td><code><a href=\"https:\/\/database.guide\/nlssort-function-in-oracle\/\" data-type=\"post\" data-id=\"19070\">NLSSORT()<\/a><\/code><\/td><td>Returns a collation key for a given character value and an explicitly or implicitly specified collation.<\/td><\/tr><tr><td><code><a href=\"https:\/\/database.guide\/regexp_count-function-in-oracle\/\" data-type=\"post\" data-id=\"19142\">REGEXP_COUNT()<\/a><\/code><\/td><td>Returns the number of times a pattern occurs in a source string.<\/td><\/tr><tr><td><code><a href=\"https:\/\/database.guide\/regexp_instr-function-in-oracle\/\" data-type=\"post\" data-id=\"19132\">REGEXP_INSTR()<\/a><\/code><\/td><td><meta charset=\"utf-8\">Extends the functionality of the <code><a href=\"https:\/\/database.guide\/instr-function-in-oracle\/\" data-type=\"post\" data-id=\"19210\">INSTR()<\/a><\/code> function by allowing us to use regular expression patterns.<\/td><\/tr><tr><td><code><a href=\"https:\/\/database.guide\/regexp_replace-function-in-oracle\/\" data-type=\"post\" data-id=\"19087\">REGEXP_REPLACE()<\/a><\/code><\/td><td>Extends the functionality of the&nbsp;<code><a href=\"https:\/\/database.guide\/replace-function-in-oracle\/\">REPLACE()<\/a><\/code>&nbsp;function by allowing us to use regular expression patterns.<\/td><\/tr><tr><td><code><a href=\"https:\/\/database.guide\/regexp_substr-function-in-oracle\/\" data-type=\"post\" data-id=\"19115\">REGEXP_SUBSTR()<\/a><\/code><\/td><td>Extends the functionality of the&nbsp;<code><a href=\"https:\/\/database.guide\/substr-function-in-oracle\/\">SUBSTR()<\/a><\/code>&nbsp;function by allowing us to use regular expression patterns.<\/td><\/tr><tr><td><code><a href=\"https:\/\/database.guide\/replace-function-in-oracle\/\" data-type=\"post\" data-id=\"19081\">REPLACE()<\/a><\/code><\/td><td>Allows you to replace a part of a string with another string.<\/td><\/tr><tr><td><code><a href=\"https:\/\/database.guide\/rpad-function-in-oracle\/\" data-type=\"post\" data-id=\"18981\">RPAD()<\/a><\/code><\/td><td>Pads the right part of a string with a certain character, to a specified number of characters.<\/td><\/tr><tr><td><code><a href=\"https:\/\/database.guide\/rtrim-function-in-oracle\/\" data-type=\"post\" data-id=\"18998\">RTRIM()<\/a><\/code><\/td><td>Trims the right part of a string. By default, it trims white space, but you can optionally specify a different character or characters to trim.<\/td><\/tr><tr><td><code><a href=\"https:\/\/database.guide\/soundex-function-in-oracle\/\" data-type=\"post\" data-id=\"19155\">SOUNDEX()<\/a><\/code><\/td><td>Returns a character string containing the phonetic representation of its argument.<\/td><\/tr><tr><td><code><a href=\"https:\/\/database.guide\/substr-function-in-oracle\/\" data-type=\"post\" data-id=\"19161\">SUBSTR()<\/a><\/code><\/td><td>Returns the specified substring from a given string.<\/td><\/tr><tr><td><code><a href=\"https:\/\/database.guide\/translate-function-in-oracle\/\" data-type=\"post\" data-id=\"19184\">TRANSLATE()<\/a><\/code><\/td><td>Allows you to make several single-character, one-to-one substitutions in one operation.<\/td><\/tr><tr><td><code><a href=\"https:\/\/database.guide\/translate-using-function-in-oracle\/\" data-type=\"post\" data-id=\"19197\">TRANSLATE(...USING)<\/a><\/code><\/td><td>C<meta charset=\"utf-8\">onverts its argument&nbsp;into the character set specified for conversions between the database character set and the national character set. Not to be confused with <meta charset=\"utf-8\">the <code>TRANSLATE()<\/code> function, which allows you to make several single-character, one-to-one substitutions in one operation. <\/td><\/tr><tr><td><code><a href=\"https:\/\/database.guide\/trim-function-in-oracle\/\" data-type=\"post\" data-id=\"19015\">TRIM()<\/a><\/code><\/td><td>Allows you to trim characters from the sides of a string. You can trim leading characters, trailing characters, or both.<\/td><\/tr><tr><td><code><a href=\"https:\/\/database.guide\/upper-function-in-oracle\/\" data-type=\"post\" data-id=\"18957\">UPPER()<\/a><\/code><\/td><td>Returns its argument with all letters in uppercase.<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Below is a list of built-in string\/character functions that are available in Oracle Database.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41],"tags":[93,67],"class_list":["post-19287","post","type-post","status-publish","format-standard","hentry","category-oracle","tag-functions","tag-string-functions"],"_links":{"self":[{"href":"https:\/\/database.guide\/wp-json\/wp\/v2\/posts\/19287","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/database.guide\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/database.guide\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/database.guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/database.guide\/wp-json\/wp\/v2\/comments?post=19287"}],"version-history":[{"count":5,"href":"https:\/\/database.guide\/wp-json\/wp\/v2\/posts\/19287\/revisions"}],"predecessor-version":[{"id":19629,"href":"https:\/\/database.guide\/wp-json\/wp\/v2\/posts\/19287\/revisions\/19629"}],"wp:attachment":[{"href":"https:\/\/database.guide\/wp-json\/wp\/v2\/media?parent=19287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/database.guide\/wp-json\/wp\/v2\/categories?post=19287"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/database.guide\/wp-json\/wp\/v2\/tags?post=19287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}