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

      <tfoot id='eBz8K'></tfoot>

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

    1. <legend id='eBz8K'><style id='eBz8K'><dir id='eBz8K'><q id='eBz8K'></q></dir></style></legend>

      重命名 MySQL 中的列时出错

      Error renaming a column in MySQL(重命名 MySQL 中的列时出错)

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

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

          <legend id='cz9uZ'><style id='cz9uZ'><dir id='cz9uZ'><q id='cz9uZ'></q></dir></style></legend>
            <tbody id='cz9uZ'></tbody>

              • <bdo id='cz9uZ'></bdo><ul id='cz9uZ'></ul>

                <i id='cz9uZ'><tr id='cz9uZ'><dt id='cz9uZ'><q id='cz9uZ'><span id='cz9uZ'><b id='cz9uZ'><form id='cz9uZ'><ins id='cz9uZ'></ins><ul id='cz9uZ'></ul><sub id='cz9uZ'></sub></form><legend id='cz9uZ'></legend><bdo id='cz9uZ'><pre id='cz9uZ'><center id='cz9uZ'></center></pre></bdo></b><th id='cz9uZ'></th></span></q></dt></tr></i><div id='cz9uZ'><tfoot id='cz9uZ'></tfoot><dl id='cz9uZ'><fieldset id='cz9uZ'></fieldset></dl></div>
              • 本文介绍了重命名 MySQL 中的列时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                限时送ChatGPT账号..

                如何重命名表 xyz 中的列?列是:

                How do I rename a column in table xyz? The columns are:

                Manufacurerid, name, status, AI, PK, int
                

                我想重命名为manufacturerid

                我尝试使用 PHPMyAdmin 面板,但出现此错误:

                I tried using PHPMyAdmin panel, but I get this error:

                MySQL said: Documentation
                #1025 - Error on rename of '.\shopping\#sql-c98_26' to '.\shopping\tblmanufacturer' (errno: 150)
                

                推荐答案

                Lone Ranger 非常接近...其实你还需要指定重命名列的数据类型.例如:

                Lone Ranger is very close... in fact, you also need to specify the datatype of the renamed column. For example:

                ALTER TABLE `xyz` CHANGE `manufacurerid` `manufacturerid` INT;
                

                记住:

                • 将 INT 替换为您的任何列数据类型(必需)
                • 波浪号/反引号 (`) 是可选的

                这篇关于重命名 MySQL 中的列时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                Can#39;t Create Entity Data Model - using MySql and EF6(无法创建实体数据模型 - 使用 MySql 和 EF6)
                MySQL select with CONCAT condition(MySQL选择与CONCAT条件)
                Capitalize first letter of each word, in existing table(将现有表格中每个单词的首字母大写)
                How to retrieve SQL result column value using column name in Python?(如何在 Python 中使用列名检索 SQL 结果列值?)
                Update row with data from another row in the same table(使用同一表中另一行的数据更新行)
                Exporting results of a Mysql query to excel?(将 Mysql 查询的结果导出到 excel?)

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

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