【发布时间】:2013-08-16 03:09:47
【问题描述】:
我的服务器管理员刚刚将 PHPMyAdmin 升级到 v4.0.4.2。
现在我无法编辑下表中的行:
CREATE TABLE IF NOT EXISTS `product_options` (
`product_id` int(10) NOT NULL,
`option_id` int(10) NOT NULL,
KEY `product_id` (`product_id`,`option_id`)
)
PHPMyAdmin 只是在我浏览表中的数据时返回此错误消息:
This table does not contain a unique column. Grid edit, checkbox, Edit, Copy and Delete features are not available.
我不希望此表中有唯一列,那么如何编辑数据?有可以更改的设置吗?
非常感谢
MySQL v5.1.70
编辑/解决方案
我意识到 PHPMyAdmin 希望我创建的不一定是新的unique column,而是unique index。这意味着我的表结构不必更改 - 我只需要添加一个唯一索引,无论如何我都应该这样做。
【问题讨论】:
标签: mysql phpmyadmin