{"id":649,"date":"2012-07-16T23:32:06","date_gmt":"2012-07-16T13:32:06","guid":{"rendered":"http:\/\/www.moneystock.net\/wp_e\/?p=649"},"modified":"2012-08-12T22:47:21","modified_gmt":"2012-08-12T12:47:21","slug":"mysql-remove-special-character-from-db-field","status":"publish","type":"post","link":"https:\/\/moneystock.net\/wp_e\/2012\/07\/16\/mysql-remove-special-character-from-db-field\/","title":{"rendered":"MySQL: remove special character from DB field"},"content":{"rendered":"<p>UPDATE table_name SET `field_name` = REPLACE(`field_name`, &#8216;&lt;&#8216;, &#8221;);<br \/>\nUPDATE table_name SET `field_name` = REPLACE(`field_name`, &#8216;&gt;&#8217;, &#8221;);<br \/>\nUPDATE table_name SET `field_name` = REPLACE(`field_name`, &#8216;&#8221;&#8216;, &#8221;);<br \/>\nUPDATE table_name SET `field_name` = REPLACE(`field_name`, &#8216;%&#8217;, &#8221;);<br \/>\nUPDATE table_name SET `field_name` = REPLACE(`field_name`, &#8216;;&#8217;, &#8221;);<br \/>\nUPDATE table_name SET `field_name` = REPLACE(`field_name`, &#8216;(&#8216;, &#8221;);<br \/>\nUPDATE table_name SET `field_name` = REPLACE(`field_name`, &#8216;)&#8217;, &#8221;);<br \/>\nUPDATE table_name SET `field_name` = REPLACE(`field_name`, &#8216;\\\\&#8217;, &#8221;);<br \/>\nUPDATE table_name SET `field_name` = REPLACE(`field_name`, &#8216;\\&#8221;, &#8221;);<br \/>\nUPDATE table_name SET `field_name` = REPLACE(`field_name`, &#8216;&amp;&#8217;, &#8216;AND&#8217;);<\/p>\n","protected":false},"excerpt":{"rendered":"<p>UPDATE table_name SET `field_name` = REPLACE(`field_name`, &#8216;&lt;&#8216;, &#8221;); UPDATE table_name SET `field_name` = REPLACE(`field_name`, &#8216;&gt;&#8217;, &#8221;); UPDATE table_name SET `field_name` = REPLACE(`field_name`, &#8216;&#8221;&#8216;, &#8221;); UPDATE table_name SET `field_name` = REPLACE(`field_name`, &#8216;%&#8217;, &#8221;); UPDATE table_name SET `field_name` = REPLACE(`field_name`, &#8216;;&#8217;, &#8221;); UPDATE table_name SET `field_name` = REPLACE(`field_name`, &#8216;(&#8216;, &#8221;); UPDATE table_name SET `field_name` = REPLACE(`field_name`, &#8216;)&#8217;,&hellip; <a class=\"more-link\" href=\"https:\/\/moneystock.net\/wp_e\/2012\/07\/16\/mysql-remove-special-character-from-db-field\/\">Continue reading <span class=\"screen-reader-text\">MySQL: remove special character from DB field<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[79],"tags":[138],"class_list":["post-649","post","type-post","status-publish","format-standard","hentry","category-web-development","tag-mysql","entry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/posts\/649","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/comments?post=649"}],"version-history":[{"count":3,"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/posts\/649\/revisions"}],"predecessor-version":[{"id":651,"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/posts\/649\/revisions\/651"}],"wp:attachment":[{"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/media?parent=649"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/categories?post=649"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/tags?post=649"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}