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

  1. <tfoot id='z20YG'></tfoot>

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

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

      <legend id='z20YG'><style id='z20YG'><dir id='z20YG'><q id='z20YG'></q></dir></style></legend>

    1. phpmyadmin 将文本从一个字段移动到另一个字段

      时间:2023-10-12

      <legend id='gOo5D'><style id='gOo5D'><dir id='gOo5D'><q id='gOo5D'></q></dir></style></legend>

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

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

            • <bdo id='gOo5D'></bdo><ul id='gOo5D'></ul>
              <tfoot id='gOo5D'></tfoot>
                <tbody id='gOo5D'></tbody>

              1. 本文介绍了phpmyadmin 将文本从一个字段移动到另一个字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我有一个包含 2 个字段的表格.电子邮件,额外

                I have a table with 2 fields. Email, Extra

                电子邮件字段中的每个条目都有一个名字,一个空格,然后是姓氏.例如.拉维·奈杜

                Every entry in the email field has a name then a space and then surname. eg. Ravi Naidoo

                是否有我可以运行的 SQL 查询将姓氏移动到额外表字段,然后将其与空格一起从电子邮件字段中删除?

                Is there a SQL query that I would be able to run that would move the surname to the Extra Table field and then remove it from the Email field along with the space?

                Eg. Email field: Ravi Naidoo
                

                更改后会

                Email field: Ravi
                Extra field: Naidoo
                

                我知道这个查询删除了空格:

                I know that this query removes the space:

                UPDATE your_table SET email = REPLACE(email, ' ', '')
                

                但我不确定如何同时将姓氏文本移动到额外字段.

                But am unsure how to move the surname text to the Extra field at the same time.

                推荐答案

                UPDATE your_table 
                    SET extra = substring_index(email, ' ', -1), 
                        email = substring_index(email,' ',1);
                

                这篇关于phpmyadmin 将文本从一个字段移动到另一个字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:什么是 phpMyAdmin 的 20,000 行限制的修复或迁移,是否真的不稳定? 下一篇:phpmyadmin 导出到 csv 用于 excel

                相关文章

              2. <tfoot id='iBspX'></tfoot>

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

                2. <small id='iBspX'></small><noframes id='iBspX'>

                  <legend id='iBspX'><style id='iBspX'><dir id='iBspX'><q id='iBspX'></q></dir></style></legend>
                    <bdo id='iBspX'></bdo><ul id='iBspX'></ul>