{"id":47809,"date":"2020-03-07T17:22:55","date_gmt":"2020-03-07T09:22:55","guid":{"rendered":"http:\/\/4563.org\/?p=47809"},"modified":"2020-03-07T17:22:55","modified_gmt":"2020-03-07T09:22:55","slug":"mysql-%e8%af%ad%e5%8f%a5%e8%af%b7%e6%95%99%e4%b8%8b%ef%bc%8c%e6%89%b9%e9%87%8f%e6%9b%bf%e6%8d%a2%e7%9a%84%e8%af%ad%e5%8f%a5%ef%bc%8c%e6%ad%a3%e5%88%99%e6%9b%bf%e6%8d%a2","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=47809","title":{"rendered":"mysql \u8bed\u53e5\u8bf7\u6559\u4e0b\uff0c\u6279\u91cf\u66ff\u6362\u7684\u8bed\u53e5\uff0c\u6b63\u5219\u66ff\u6362"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>lqtest<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>mysql \u8bed\u53e5\u8bf7\u6559\u4e0b\uff0c\u6279\u91cf\u66ff\u6362\u7684\u8bed\u53e5\uff0c\u6b63\u5219\u66ff\u6362<\/h3>\n<p>  \t\t\u91c7\u96c6\u7684\u5185\u5bb9\u91cc\u9762\u6709\u5f88\u591a\u7f51\u5740\uff0c\u4f8b\u5982<br \/>  https:\/\/www.hostloc.com\/123\/456\/789.html\u5176\u4e2d\u6570\u5b57\u4f4d\u6570\u4e0d\u56fa\u5b9a&nbsp; &nbsp;\u6709\u53ef\u80fd\u4e0b\u4e00\u4e2a\u662f https:\/\/www.hostloc.com\/12344\/444456\/444789.html&nbsp; &nbsp; \u8fd9\u79cd\u5185\u5bb9\u51e0\u5341\u4e07\u6761\uff0c&nbsp; &nbsp;&nbsp; &nbsp;<br \/>  \u9700\u6c42\u662f\u53ea\u7559\u6700\u540e\u7684789.html\u524d\u9762\u7684\u5168\u90e8\u4e0d\u8981<\/p>\n<p>  \u672c\u6765\u4ee5\u524d\u7528\u4e00\u4e2a\u6279\u91cf\u66ff\u6362\u8bed\u53e5<br \/>  UPDATE `table` SET \u5b57\u6bb5=replace(\u5b57\u6bb5,&#8217;https:\/\/www.hostloc.com\/123\/456\/&#8217;,&#8221;)<br \/>   \u66ff\u6362\u5b8c\u5c31\u53ea\u5269\u6700\u540e\u7684789.html<\/p>\n<p>  \u4f46\u662f\u73b0\u5728\u7531\u4e8e\u6709\u51e0\u5341\u4e07\u6761\uff0c\u6240\u4ee5\u60f3\u7528\u6b63\u5219\u66ff\u6362\uff0c\u4f46\u662fmysql \u4e0d\u719f\u6089\uff0c \u6c42\u6307\u5bfc\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>chief567<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u66ff\u6362\u6210*\u53f7\u554a\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>lqtest<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tchief567 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-7 17:51<br \/>  \u66ff\u6362\u6210*\u53f7\u554a<\/p>\n<p> \u4e0d\u652f\u6301\u5440\u3002\u3002\u3002\u3002\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>chief567<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tupdate table set col=&#8217;789.html&#8217; where col like &#8216;%789.html&#8217;;<\/p>\n<p>  \u6211\u7684\u9505\uff0cmysql\u7684replace\u4e0d\u652f\u6301\u6b63\u5219\uff0c\u53ea\u80fd\u67e5\u4e86\u518d\u6539\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>lqtest<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tchief567 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-7 18:05<br \/>  update table set col=&#8217;789.html&#8217; where col like &#8216;%789.html&#8217;;<\/p>\n<p>  \u6211\u7684\u9505\uff0cmysql\u7684replace\u4e0d\u652f\u6301\u6b63\u5219\uff0c\u53ea\u80fd &#8230;<\/p>\n<p> 789.html\u6709\u53ef\u80fd\u4e0b\u4e00\u6761\u662f800.html&nbsp; &nbsp; 900.html<br \/>  \u51e0\u5341\u4e07\u6761\u3002\u3002\u3002\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>lqtest \u5927\u4f6c\u6709\u8bdd\u8bf4 : my&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/47809"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=47809"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/47809\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=47809"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=47809"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=47809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}