热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

尽管存在唯一列,仍显示“当前选择不包含唯一列。网格编辑、复选框、编辑、复制和删除功能不可用”的消息。

I have created a table with both a primary key and a unique key, however, the error message ""Curren

I have created a table with both a primary key and a unique key, however, the error message ""Current selection does not contain a unique column. Grid edit, checkbox, Edit, Copy and Delete features are not available." still appears on phpmyadmin.

It is stopping me from inserting data when using INSERT.. ON DUPLICATE KEY into the database table, as it :

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
`CREATE TABLE `Rest_Details` (

 `Resturant_ID` int(34) NOT NULL AUTO_INCREMENT,

 `Resturant_name` varchar(100) NOT NULL,

 `Resturant_des` varchar(200) NOT NULL,

 `Res_Address_Line_1` varchar(200) NOT NULL,

 `Res_Address_Line_2` varchar(200) DEFAULT NULL,

 `City_name` varchar(100) NOT NULL,

 `Resturant_Postcode` varchar(8) DEFAULT NULL,

 `Cat_ID` tinyint(11) NOT NULL,

 `Avg_Del` tinyint(11) NOT NULL,

 `Est_Del` tinyint(11) NOT NULL,

 `Email1` varchar(200) NOT NULL,

 `Email2` varchar(200) DEFAULT NULL,

 `Min_ord` tinyint(11) NOT NULL,

 PRIMARY KEY (`Resturant_ID`),

 UNIQUE KEY `Resturant_name` (`Resturant_name`)

) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8`

_OS X Yosemite _:

* MySQL:*

PHP version 5:

phpMyAdmin version: 4.4.10

该提问来源于开源项目:phpmyadmin/phpmyadmin

Okay, I think the remaining issue is #11816





   



推荐阅读
author-avatar
够不李先生
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有