我的服务器管理员刚刚将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`)
)
Run Code Online (Sandbox Code Playgroud)
当我浏览表中的数据时,PHPMyAdmin只返回此错误消息:
This table does not contain a unique column. Grid edit, checkbox, Edit, Copy and Delete features are not available.
我不想在此表中使用唯一列,因此如何编辑数据?我可以改变一个设置吗?
非常感谢
MySQL v5.1.70
编辑/解决方案
我意识到它不一定是一个新的unique columnPHPMyAdmin想要我创建,而是一个unique index.这意味着我的表的结构不必改变 - 我只需要添加一个唯一的索引,无论如何我应该这样做.
| 归档时间: |
|
| 查看次数: |
34781 次 |
| 最近记录: |