作者:够不李先生 | 来源:互联网 | 2024-10-30 18:52
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