phpmyadmin,mysql - 令牌不匹配但我成功创建了 table
phpmyadmin,mysql - Token Mismatch but i successfully created a table
我正在用外键做 table,就在这里。
create table PM_Team_Members
(
PM_Team_Members_ID int NOT NULL auto_increment PRIMARY KEY,
PM_Team_Members_firstName varchar(50) not null,
PM_Team_Members_middleName varchar(50) not null,
PM_Team_Members_lastName varchar(50) not null,
PM_Team_Members_address varchar(255) not null,
PM_Team_Members_contact numeric not null,
PM_Spec_id int,
constraint fk_PM_id foreign key (PM_Spec_id) references PM_Specialization(PM_Spec_id)
)
这是参考 table
create table PM_Specialization
(
PM_Spec_ID int auto_increment PRIMARY KEY,
PM_Spec_Specialization varchar(50) not null,
PM_Spec_Description varchar(255) not null
)
当我点击 GO 进行查询时。它说 MySQL returned an empty result set (i.e. zero rows). (Query took 0.2162 sec)
我认为它是正确的。但随后弹出窗口显示 Error: Token Mismatch
那个怎么样?是我做错了什么还是某种错误?
这部分references PM_Specialization(PM_Spec_id) )
您的 PM_Specialization table 中有 PM_Spec_ID 而不是 PM_Spec_id。
我正在用外键做 table,就在这里。
create table PM_Team_Members
(
PM_Team_Members_ID int NOT NULL auto_increment PRIMARY KEY,
PM_Team_Members_firstName varchar(50) not null,
PM_Team_Members_middleName varchar(50) not null,
PM_Team_Members_lastName varchar(50) not null,
PM_Team_Members_address varchar(255) not null,
PM_Team_Members_contact numeric not null,
PM_Spec_id int,
constraint fk_PM_id foreign key (PM_Spec_id) references PM_Specialization(PM_Spec_id)
)
这是参考 table
create table PM_Specialization
(
PM_Spec_ID int auto_increment PRIMARY KEY,
PM_Spec_Specialization varchar(50) not null,
PM_Spec_Description varchar(255) not null
)
当我点击 GO 进行查询时。它说 MySQL returned an empty result set (i.e. zero rows). (Query took 0.2162 sec)
我认为它是正确的。但随后弹出窗口显示 Error: Token Mismatch
那个怎么样?是我做错了什么还是某种错误?
这部分references PM_Specialization(PM_Spec_id) )
您的 PM_Specialization table 中有 PM_Spec_ID 而不是 PM_Spec_id。