为什么主键图标不亮?

时间:2013-11-29 19:22:30

标签: mysql sql database phpmyadmin

刚刚开始学习数据库,在以下屏幕截图中,为什么主键不会点亮列CustomerID?根据索引和SQL查询,它是主键。我无法点击该图标,我无法在其他任何地方找到它作为主键。enter image description here enter image description here

SQL result

Host: 127.0.0.1 Database: WMCRM Generation Time: Nov 29, 2013 at 08:27 PM Generated by: phpMyAdmin 4.0.4.1 / MySQL 5.5.32 SQL query: show create table CUSTOMER; Rows: 1

This table does not contain a unique column. Grid edit, checkbox, Edit, Copy and Delete features are not available. Table Create Table
CUSTOMER CREATE TABLE customer ( CustomerID int(11) NOT NULL AUTO_INCREMENT, LastName text NOT NULL, FirstName text NOT NULL, Address text NOT NULL, City text NOT NULL, State text NOT NULL, ZIP text NOT NULL, Phone text NOT NULL, Fax text NOT NULL, Email text NOT NULL, PRIMARY KEY (CustomerID) ) ENGINE=InnoDB DEFAULT CHARSET=utf8

1 个答案:

答案 0 :(得分:0)

只有在可以执行操作时,主键图标或链接才可用。在这种情况下,因为此列已经是主键,所以不可能将其作为主键。