phpMyAdmin 删除索引

发布于 2024-10-05 11:18:34 字数 136 浏览 0 评论 0 原文

我的一个表中有一个列已分配有索引。它阻止我拥有两个相同的 ID 号码。

我假设它不允许我有两个相同 ID 的条目的原因是因为它已被设置为唯一。

我想知道如何删除此规则,以便我可以多次插入相同的 ID 号。

干杯

I have a column in one of my tables which has been assigned an index. It is preventing me from having two of the same ID number.

I am assuming the reason it is not letting me have two entries of the same ID is because it has been set to be Unique.

I am wondering how do I remove this rule so that I can insert the same ID number several times.

Cheers

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

╰つ倒转 2024-10-12 11:18:34

在表结构中的“列”列表下方,有一个名为“索引”的小表。每一行都是一个索引。在那里找到您的唯一索引并使用“删除”符号(红色 X)删除它。如果您将其放在多个列上,则将其删除并重新创建,但不包含您不希望唯一的列

below the list of your "columns" in the table structure you have a small table called "Indexes". Every row is an index. Find there your unique index and drop it using "drop" symbol (red X). If you have it on more than one column then drop it and recreate without the column you don't want unique

醉梦枕江山 2024-10-12 11:18:34

请按照以下步骤操作:-

  1. 单击表格的结构选项卡。
  2. 点击索引(表格下方)。
  3. 单击删除以删除索引。

在此处输入图像描述

Follow this steps:-

  1. Click Structure tab of table.
  2. Click Index(below the table).
  3. Click Drop for remove index(s).

enter image description here

浪漫人生路 2024-10-12 11:18:34

在表下方的选项卡结构中列出了索引。在某些版本的 PHPMyAdmin 中,仅当您单击“+索引”时才会列出索引,这很容易被忽视。

In the tab structure below the table the indexes are listed. In some versions of PHPMyAdmin the index are listed only if you click on "+Indexes" which is easy to overlook.

倚栏听风 2024-10-12 11:18:34

ALTER TABLE dbName.table DROP INDEX indexName

ALTER TABLE dbName.table DROP INDEX indexName

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文