• <small id='gd6HR'></small><noframes id='gd6HR'>

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

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

        从 MySQL 表中删除唯一约束

        Dropping Unique constraint from MySQL table(从 MySQL 表中删除唯一约束)

        <small id='6HgSI'></small><noframes id='6HgSI'>

            <tbody id='6HgSI'></tbody>
              <bdo id='6HgSI'></bdo><ul id='6HgSI'></ul>
                <legend id='6HgSI'><style id='6HgSI'><dir id='6HgSI'><q id='6HgSI'></q></dir></style></legend>
              1. <tfoot id='6HgSI'></tfoot>

                1. <i id='6HgSI'><tr id='6HgSI'><dt id='6HgSI'><q id='6HgSI'><span id='6HgSI'><b id='6HgSI'><form id='6HgSI'><ins id='6HgSI'></ins><ul id='6HgSI'></ul><sub id='6HgSI'></sub></form><legend id='6HgSI'></legend><bdo id='6HgSI'><pre id='6HgSI'><center id='6HgSI'></center></pre></bdo></b><th id='6HgSI'></th></span></q></dt></tr></i><div id='6HgSI'><tfoot id='6HgSI'></tfoot><dl id='6HgSI'><fieldset id='6HgSI'></fieldset></dl></div>
                2. 本文介绍了从 MySQL 表中删除唯一约束的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如何使用 phpMyAdmin 在 MySQL 表的列上删除唯一键约束"?

                  How can I drop the "Unique Key Constraint" on a column of a MySQL table using phpMyAdmin?

                  推荐答案

                  唯一约束也是一个索引.

                  A unique constraint is also an index.

                  首先使用SHOW INDEX FROM tbl_name找出索引的名称.索引的名称存储在该查询结果中名为 key_name 的列中.

                  First use SHOW INDEX FROM tbl_name to find out the name of the index. The name of the index is stored in the column called key_name in the results of that query.

                  然后就可以使用DROP INDEX:

                  DROP INDEX index_name ON tbl_name
                  

                  或ALTER TABLE 语法:

                  ALTER TABLE tbl_name DROP INDEX index_name
                  

                  这篇关于从 MySQL 表中删除唯一约束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  ibtmp1是非压缩的innodb临时表的独立表空间,通过innodb_temp_data_file_path参数指定文件的路径,文件名和大小,默认配置为ibtmp1:12M:autoextend,也就是说在文件系统磁盘足够的情况下,这个文件大小是可以无限增长的。 为了避免ibtmp1文件无止境的暴涨导致
                  What does SQL clause quot;GROUP BY 1quot; mean?(SQL 子句“GROUP BY 1是什么意思?意思是?)
                  MySQL groupwise MAX() returns unexpected results(MySQL groupwise MAX() 返回意外结果)
                  MySQL SELECT most frequent by group(MySQL SELECT 按组最频繁)
                  Why Mysql#39;s Group By and Oracle#39;s Group by behaviours are different(为什么 Mysql 的 Group By 和 Oracle 的 Group by 行为不同)
                  MySQL GROUP BY DateTime +/- 3 seconds(MySQL GROUP BY DateTime +/- 3 秒)
                    <tbody id='fdsH5'></tbody>
                  • <bdo id='fdsH5'></bdo><ul id='fdsH5'></ul>

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

                            <tfoot id='fdsH5'></tfoot>

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