<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 将文本从一个字段移动到另一个字段

      phpmyadmin move text from one field to another(phpmyadmin 将文本从一个字段移动到另一个字段)

      <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 将文本从一个字段移动到另一个字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Appending GET parameters to URL from lt;formgt; action(将 GET 参数附加到来自 lt;formgt; 的 URL行动)
                Forcing quot;Save Asquot; dialog via jQuery GET(强制“另存为通过 jQuery GET 对话框)
                PHP - get certain word from string(PHP - 从字符串中获取某个单词)
                How to debug a get request in php using curl(如何使用 curl 在 php 中调试 get 请求)
                get a # from a url in php(从 php 中的 url 获取 #)
                PHP - include() file not working when variables are put in url?(PHP - 将变量放入 url 时,include() 文件不起作用?)

                • <tfoot id='iBspX'></tfoot>

                      <tbody id='iBspX'></tbody>
                  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>