{"id":106627,"date":"2022-01-07T14:52:18","date_gmt":"2022-01-07T12:52:18","guid":{"rendered":"https:\/\/examples.javacodegeeks.com\/?p=106627"},"modified":"2022-01-07T14:52:19","modified_gmt":"2022-01-07T12:52:19","slug":"sql-server-replace-function","status":"publish","type":"post","link":"https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/","title":{"rendered":"SQL Server REPLACE() Function"},"content":{"rendered":"<h2 class=\"wp-block-heading\" id=\"h-1-introduction\">1. Introduction<\/h2>\n<p>SQL defines the <a href=\"https:\/\/www.w3schools.com\/sql\/func_mysql_replace.asp\" target=\"_blank\" rel=\"noreferrer noopener\">REPLACE<\/a> function which takes three required arguments and returns a new string in which all occurrences of the substring are replaced by a new substring.<\/p>\n<pre class=\"wp-block-preformatted brush:sql\">REPLACE(input_string_arg, searching_substring_arg, replacing_substring_arg)<\/pre>\n<ul class=\"wp-block-list\">\n<li><strong>input_string_arg<\/strong> &#8211; required, the searching source data.<\/li>\n<li><strong>searching_substring_arg<\/strong> &#8211; required, the substring to be replaced.<\/li>\n<li><strong>replacing_substring_arg<\/strong> &#8211; required, the replacement substring to be used to replace the <strong>searching_substring_arg<\/strong>.<\/li>\n<\/ul>\n<p><strong>Note<\/strong>: it returns a <strong>null<\/strong> if any of the arguments is a <strong>null<\/strong>.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-2-technologies-used\">2. Technologies Used<\/h2>\n<p>The example code in this article was built and run using:<\/p>\n<ul class=\"wp-block-list\">\n<li>MySQL<\/li>\n<li>SQL<\/li>\n<\/ul>\n<h2 class=\"wp-block-heading\" id=\"h-3-setup-database\">3. Setup Database<\/h2>\n<p>In this step, I will use <strong>mysqlDemo<\/strong> database to show the SQL <strong>Replace<\/strong> function. Click <a href=\"https:\/\/examples.javacodegeeks.com\/introduction-to-sql-basics\/\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a> on how to set up.<\/p>\n<p><span style=\"text-decoration: underline\"><em>show databases<\/em><\/span>\n<\/p>\n<pre class=\"wp-block-preformatted brush:sql\">mysql&gt; show databases ;\n+--------------------+\n| Database           |\n+--------------------+\n| information_schema |\n| mysql              |\n| mysqlDemo          |\n| performance_schema |\n| sys                |\n+--------------------+\n5 rows in set (0.04 sec)\n\nuse mysqlDemo;<\/pre>\n<h2 class=\"wp-block-heading\" id=\"h-4-demo-replace-function\">4. Demo Replace Function<\/h2>\n<p>In this step, I will show several ways to use the <strong>Replace<\/strong> function in a <strong>Select<\/strong> statement.<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<h3 class=\"wp-block-heading\" id=\"h-4-1-replace-in-select-statement\">4.1 Replace in Select Statement<\/h3>\n<p>The following <strong>select<\/strong> statement replaces the word <strong>apple<\/strong> with <strong>orange<\/strong> in the &#8220;<strong>I like apple, he likes apple<\/strong>&#8221; sentence. The result string became <strong>&#8220;I like orange, he likes orange&#8221;<\/strong>.<\/p>\n<p><span style=\"text-decoration: underline\"><em>Select with Replace Function<\/em><\/span>\n<\/p>\n<pre class=\"wp-block-preformatted brush:sql\">mysql&gt; SELECT\n    -&gt;     REPLACE(\n    -&gt;         'I like apple, he likes apple',\n    -&gt;         'apple',\n    -&gt;         'orange'\n    -&gt;     ) newString;\n+--------------------------------+\n| newString                      |\n+--------------------------------+\n| I like orange, he likes orange |\n+--------------------------------+\n1 row in set (0.00 sec)<\/pre>\n<h3 class=\"wp-block-heading\" id=\"h-4-2-replace-in-select-statement-with-column\">4.2 Replace in Select Statement with Column<\/h3>\n<p>There are four rows in the <strong>demo_table<\/strong> as the following:<\/p>\n<p><span style=\"text-decoration: underline\"><em>Select * from demo_table<\/em><\/span>\n<\/p>\n<pre class=\"wp-block-preformatted brush:sql\">mysql&gt; select * from demo_table;\n+----+-----------+-------+------+\n| id | name      | phone | type |\n+----+-----------+-------+------+\n|  1 | mary      | NULL  |    1 |\n|  2 | shan      | NULL  |    2 |\n|  3 | zheng     | NULL  |    3 |\n|  4 | mary test | NULL  |    4 |\n+----+-----------+-------+------+\n4 rows in set (0.01 sec)<\/pre>\n<p>In this step, I will use the <strong>replace<\/strong> function to transform the <strong>name<\/strong> column value by replacing every &#8220;<strong>mary<\/strong>&#8221; substring with the <strong>&#8220;JCG&#8221;<\/strong> substring.<\/p>\n<p><span style=\"text-decoration: underline\"><em>SELECT name, REPLACE(name, &#8220;mary&#8221;, &#8220;JCG&#8221;) replacedName from demo_table<\/em><\/span>\n<\/p>\n<pre class=\"wp-block-preformatted brush:sql\">mysql&gt; SELECT name, REPLACE(name, \"mary\", \"JCG\") replacedName from demo_table;\n+-----------+--------------+\n| name      | replacedName |\n+-----------+--------------+\n| mary      | JCG          |\n| shan      | shan         |\n| zheng     | zheng        |\n| mary test | JCG test     |\n+-----------+--------------+\n4 rows in set (0.00 sec)<\/pre>\n<h3 class=\"wp-block-heading\" id=\"h-4-3-replace-in-update-statement\">4.3 Replace in Update Statement<\/h3>\n<p>We can use the <strong>REPLACE<\/strong> function in the <strong>UPDATE<\/strong> statement to correct the value. In this step, I will update the <strong>name<\/strong> column in the <strong>demo_table<\/strong> by replacing &#8220;<strong>mary<\/strong>&#8221; with &#8220;<strong>JCG<\/strong>&#8220;.<\/p>\n<p><span style=\"text-decoration: underline\"><em>update demo_table<br \/>\nset name = replace(name,&#8217;mary&#8217;, &#8216;JCG&#8217;)<br \/>\nwhere id &lt; 10 <\/em><\/span><\/p>\n<pre class=\"wp-block-preformatted brush:sql\">mysql&gt; update demo_table\n    -&gt; set name = replace(name,'mary', 'JCG')\n    -&gt; where id &lt;10;\nQuery OK, 2 rows affected (0.01 sec)\nRows matched: 4  Changed: 2  Warnings: 0\n\nmysql&gt; select * from demo_table;\n+----+----------+-------+------+\n| id | name     | phone | type |\n+----+----------+-------+------+\n|  1 | JCG      | NULL  |    1 |\n|  2 | shan     | NULL  |    2 |\n|  3 | zheng    | NULL  |    3 |\n|  4 | JCG test | NULL  |    4 |\n+----+----------+-------+------+\n4 rows in set (0.00 sec)\n\nmysql&gt;<\/pre>\n<p>As you can see here, two records are updated. Both &#8220;<strong>mary<\/strong>&#8221; and &#8220;<strong>mary test<\/strong>&#8221; become &#8220;<strong>JCG<\/strong>&#8221; and &#8220;<strong>JCG test<\/strong>&#8220;.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-5-summary\">5. Summary<\/h2>\n<p>The SQL <a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-string-functions\/sql-server-replace-function\/\" target=\"_blank\" rel=\"noreferrer noopener\">REPLACE<\/a> function is a common utility function which can be used anywhere accepting a <strong>String <\/strong>value. In this example, I demonstrated how to use it in both <strong>SELECT<\/strong> and <strong>UPDATE<\/strong> statements.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-6-download-the-source-code\">6. Download the Source Code<\/h2>\n<div class=\"download\"><strong>Download<\/strong><br \/>\nYou can download the full source code of this example here: <a href=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/01\/sql-replace.zip\"><strong>SQL Server REPLACE() Function<\/strong><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>1. Introduction SQL defines the REPLACE function which takes three required arguments and returns a new string in which all occurrences of the substring are replaced by a new substring. REPLACE(input_string_arg, searching_substring_arg, replacing_substring_arg) input_string_arg &#8211; required, the searching source data. searching_substring_arg &#8211; required, the substring to be replaced. replacing_substring_arg &#8211; required, the replacement substring to &hellip;<\/p>\n","protected":false},"author":140,"featured_media":1204,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[53],"tags":[46668],"class_list":["post-106627","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sql","tag-sql-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>SQL Server REPLACE() Function - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"SQL defines the REPLACE function which takes three required arguments and returns a new string so all occurrences of the substring are replaced by a new substring.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SQL Server REPLACE() Function - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"SQL defines the REPLACE function which takes three required arguments and returns a new string so all occurrences of the substring are replaced by a new substring.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/\" \/>\n<meta property=\"og:site_name\" content=\"Examples Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2022-01-07T12:52:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-01-07T12:52:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Mary Zheng\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mary Zheng\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/\"},\"author\":{\"name\":\"Mary Zheng\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/8a2034fbabcb20a9396e9819261855ae\"},\"headline\":\"SQL Server REPLACE() Function\",\"datePublished\":\"2022-01-07T12:52:18+00:00\",\"dateModified\":\"2022-01-07T12:52:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/\"},\"wordCount\":355,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg\",\"keywords\":[\"SQL Server\"],\"articleSection\":[\"sql\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/\",\"name\":\"SQL Server REPLACE() Function - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg\",\"datePublished\":\"2022-01-07T12:52:18+00:00\",\"dateModified\":\"2022-01-07T12:52:19+00:00\",\"description\":\"SQL defines the REPLACE function which takes three required arguments and returns a new string so all occurrences of the substring are replaced by a new substring.\",\"breadcrumb\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/#primaryimage\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg\",\"width\":150,\"height\":150,\"caption\":\"Bipartite Graph\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/examples.javacodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java Development\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/java-development\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Core Java\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/java-development\/core-java\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"sql\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/java-development\/core-java\/sql\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"SQL Server REPLACE() Function\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Examples and Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/javacodegeeks\",\"https:\/\/x.com\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/8a2034fbabcb20a9396e9819261855ae\",\"name\":\"Mary Zheng\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/Mary-Zheng_avatar_1510732235-96x96.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/Mary-Zheng_avatar_1510732235-96x96.jpg\",\"caption\":\"Mary Zheng\"},\"description\":\"Mary has graduated from Mechanical Engineering department at ShangHai JiaoTong University. She also holds a Master degree in Computer Science from Webster University. During her studies she has been involved with a large number of projects ranging from programming and software engineering. She works as a senior Software Engineer in the telecommunications sector where she acts as a leader and works with others to design, implement, and monitor the software solution.\",\"url\":\"https:\/\/examples.javacodegeeks.com\/author\/mary-zheng\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SQL Server REPLACE() Function - Java Code Geeks","description":"SQL defines the REPLACE function which takes three required arguments and returns a new string so all occurrences of the substring are replaced by a new substring.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/","og_locale":"en_US","og_type":"article","og_title":"SQL Server REPLACE() Function - Java Code Geeks","og_description":"SQL defines the REPLACE function which takes three required arguments and returns a new string so all occurrences of the substring are replaced by a new substring.","og_url":"https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/","og_site_name":"Examples Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2022-01-07T12:52:18+00:00","article_modified_time":"2022-01-07T12:52:19+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","type":"image\/jpeg"}],"author":"Mary Zheng","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Mary Zheng","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/#article","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/"},"author":{"name":"Mary Zheng","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/8a2034fbabcb20a9396e9819261855ae"},"headline":"SQL Server REPLACE() Function","datePublished":"2022-01-07T12:52:18+00:00","dateModified":"2022-01-07T12:52:19+00:00","mainEntityOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/"},"wordCount":355,"commentCount":0,"publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","keywords":["SQL Server"],"articleSection":["sql"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/","url":"https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/","name":"SQL Server REPLACE() Function - Java Code Geeks","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/#primaryimage"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","datePublished":"2022-01-07T12:52:18+00:00","dateModified":"2022-01-07T12:52:19+00:00","description":"SQL defines the REPLACE function which takes three required arguments and returns a new string so all occurrences of the substring are replaced by a new substring.","breadcrumb":{"@id":"https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/#primaryimage","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","width":150,"height":150,"caption":"Bipartite Graph"},{"@type":"BreadcrumbList","@id":"https:\/\/examples.javacodegeeks.com\/sql-server-replace-function\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/examples.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java Development","item":"https:\/\/examples.javacodegeeks.com\/category\/java-development\/"},{"@type":"ListItem","position":3,"name":"Core Java","item":"https:\/\/examples.javacodegeeks.com\/category\/java-development\/core-java\/"},{"@type":"ListItem","position":4,"name":"sql","item":"https:\/\/examples.javacodegeeks.com\/category\/java-development\/core-java\/sql\/"},{"@type":"ListItem","position":5,"name":"SQL Server REPLACE() Function"}]},{"@type":"WebSite","@id":"https:\/\/examples.javacodegeeks.com\/#website","url":"https:\/\/examples.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Examples and Code Snippets","publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/examples.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/examples.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/8a2034fbabcb20a9396e9819261855ae","name":"Mary Zheng","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/Mary-Zheng_avatar_1510732235-96x96.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/Mary-Zheng_avatar_1510732235-96x96.jpg","caption":"Mary Zheng"},"description":"Mary has graduated from Mechanical Engineering department at ShangHai JiaoTong University. She also holds a Master degree in Computer Science from Webster University. During her studies she has been involved with a large number of projects ranging from programming and software engineering. She works as a senior Software Engineer in the telecommunications sector where she acts as a leader and works with others to design, implement, and monitor the software solution.","url":"https:\/\/examples.javacodegeeks.com\/author\/mary-zheng\/"}]}},"_links":{"self":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/106627","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/users\/140"}],"replies":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=106627"}],"version-history":[{"count":0,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/106627\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media\/1204"}],"wp:attachment":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=106627"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=106627"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=106627"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}