{"id":230,"date":"2011-12-08T23:01:52","date_gmt":"2011-12-08T20:01:52","guid":{"rendered":"http:\/\/fatihacar.com\/blog\/?p=230"},"modified":"2011-12-08T23:01:52","modified_gmt":"2011-12-08T20:01:52","slug":"translate-function-in-oracle","status":"publish","type":"post","link":"http:\/\/www.fatihacar.com\/blog\/translate-function-in-oracle\/","title":{"rendered":"Translate Function in Oracle"},"content":{"rendered":"<p>The <strong>translate<\/strong> function replaces a sequence of characters in a string with another set of characters. However, it replaces a single character at a time. For example, it will replace the 1st character in the string_to_replace with the 1st character in the replacement_string. Then it will replace the 2nd character in the string_to_replace with the 2nd character in the replacement_string, and so on. You can use for translation from turkish character to english character.<\/p>\n<p><strong>Example<\/strong><\/p>\n<blockquote><p>\nSQL> select translate(&#8216;Y\u0131ld\u0131r\u0131m \u015eim\u015feko\u011flu&#8217;,&#8217;\u0131\u0130\u015f\u015e\u00e7\u00c7\u00f6\u00d6\u00fc\u00dc&#8217;,&#8217;iIsScCoOuU&#8217;) from dual;<br \/>\n<strong>Result :<\/strong> Yildirim Simsekoglu<br \/>\nSQL> select translate(&#8217;12test44&#8242;,&#8217;14&#8217;,&#8217;PL&#8217;) from dual;<br \/>\n<strong>Result :<\/strong> P2testLL\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>The translate function replaces a sequence of characters in a string with another set of characters. However, it replaces a single character at a time. For example, it will replace the 1st character in the string_to_replace with the 1st character in the replacement_string. Then it will replace the 2nd character in the string_to_replace with the&#8230;<\/p>\n","protected":false},"author":37,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6],"tags":[14,91],"class_list":["post-230","post","type-post","status-publish","format-standard","hentry","category-oracle-sql","tag-database-administration","tag-oracle-sql"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p39NFI-3I","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/230","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/comments?post=230"}],"version-history":[{"count":1,"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/230\/revisions"}],"predecessor-version":[{"id":231,"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/230\/revisions\/231"}],"wp:attachment":[{"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/media?parent=230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/categories?post=230"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/tags?post=230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}