phpMyAdmin错误 - 说我的表有两个时没有唯一的列

时间:2016-03-30 16:47:46

标签: mysql phpmyadmin

phpMyAdmin正在显示:

 Current selection does not contain a unique column. Grid edit, checkbox, Edit, Copy and 
 Delete features are not available.

即使我有一个独特的列,它也会显示。事实上,我有两个:

 CREATE TABLE `Rest_Details` (
 `Resturant_ID` bigint(255) 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`),
  UNIQUE KEY `Resturant_ID` (`Resturant_ID`)
 ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8

我认为这会导致无数问题,即插入数据并从相关表格中选择数据。我该如何解决这个问题?

0 个答案:

没有答案