• <legend id='lqrTY'><style id='lqrTY'><dir id='lqrTY'><q id='lqrTY'></q></dir></style></legend>

        <bdo id='lqrTY'></bdo><ul id='lqrTY'></ul>

      <small id='lqrTY'></small><noframes id='lqrTY'>

      <i id='lqrTY'><tr id='lqrTY'><dt id='lqrTY'><q id='lqrTY'><span id='lqrTY'><b id='lqrTY'><form id='lqrTY'><ins id='lqrTY'></ins><ul id='lqrTY'></ul><sub id='lqrTY'></sub></form><legend id='lqrTY'></legend><bdo id='lqrTY'><pre id='lqrTY'><center id='lqrTY'></center></pre></bdo></b><th id='lqrTY'></th></span></q></dt></tr></i><div id='lqrTY'><tfoot id='lqrTY'></tfoot><dl id='lqrTY'><fieldset id='lqrTY'></fieldset></dl></div>
      <tfoot id='lqrTY'></tfoot>

        MySQL字符串替换

        时间:2023-08-19

        <i id='1XXTN'><tr id='1XXTN'><dt id='1XXTN'><q id='1XXTN'><span id='1XXTN'><b id='1XXTN'><form id='1XXTN'><ins id='1XXTN'></ins><ul id='1XXTN'></ul><sub id='1XXTN'></sub></form><legend id='1XXTN'></legend><bdo id='1XXTN'><pre id='1XXTN'><center id='1XXTN'></center></pre></bdo></b><th id='1XXTN'></th></span></q></dt></tr></i><div id='1XXTN'><tfoot id='1XXTN'></tfoot><dl id='1XXTN'><fieldset id='1XXTN'></fieldset></dl></div>
      1. <small id='1XXTN'></small><noframes id='1XXTN'>

        <tfoot id='1XXTN'></tfoot>
          <bdo id='1XXTN'></bdo><ul id='1XXTN'></ul>
              <tbody id='1XXTN'></tbody>
            • <legend id='1XXTN'><style id='1XXTN'><dir id='1XXTN'><q id='1XXTN'></q></dir></style></legend>

                  本文介绍了MySQL字符串替换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我有一列包含 url (id, url):

                  I have a column containing urls (id, url):

                  http://www.example.com/articles/updates/43
                  http://www.example.com/articles/updates/866
                  http://www.example.com/articles/updates/323
                  http://www.example.com/articles/updates/seo-url
                  http://www.example.com/articles/updates/4?something=test
                  

                  我想将更新"一词更改为新闻".可以用脚本来做到这一点吗?

                  I'd like to change the word "updates" to "news". Is it possible to do this with a script?

                  推荐答案

                  UPDATE your_table
                  SET your_field = REPLACE(your_field, 'articles/updates/', 'articles/news/')
                  WHERE your_field LIKE '%articles/updates/%'
                  

                  现在的行就像

                  http://www.example.com/articles/updates/43

                  将是

                  http://www.example.com/articles/news/43

                  http://www.electrictoolbox.com/mysql-find-replace-text/

                  这篇关于MySQL字符串替换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何启用 MySQL 查询日志? 下一篇:测试 MySQL 表中是否存在行的最佳方法

                  相关文章

                  最新文章

                  1. <i id='XMWAv'><tr id='XMWAv'><dt id='XMWAv'><q id='XMWAv'><span id='XMWAv'><b id='XMWAv'><form id='XMWAv'><ins id='XMWAv'></ins><ul id='XMWAv'></ul><sub id='XMWAv'></sub></form><legend id='XMWAv'></legend><bdo id='XMWAv'><pre id='XMWAv'><center id='XMWAv'></center></pre></bdo></b><th id='XMWAv'></th></span></q></dt></tr></i><div id='XMWAv'><tfoot id='XMWAv'></tfoot><dl id='XMWAv'><fieldset id='XMWAv'></fieldset></dl></div>

                        <bdo id='XMWAv'></bdo><ul id='XMWAv'></ul>
                    1. <small id='XMWAv'></small><noframes id='XMWAv'>

                    2. <legend id='XMWAv'><style id='XMWAv'><dir id='XMWAv'><q id='XMWAv'></q></dir></style></legend>

                      <tfoot id='XMWAv'></tfoot>